1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-22 15:10:44 -05:00

fix(ext/ffi): types for nonblocking FFI (#12345)

This commit is contained in:
Divy Srivastava 2021-10-11 18:39:11 +05:30 committed by GitHub
parent a7baf5f2bb
commit 423b02d889
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -123,6 +123,8 @@ declare namespace Deno {
export interface ForeignFunction {
parameters: (NativeType | "buffer")[];
result: NativeType;
/** When true, function calls will run on a dedicated blocking thread and will return a Promise resolving to the `result`. */
nonblocking?: boolean;
}
/** A dynamic library resource */