summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2021-10-11 18:39:11 +0530
committerGitHub <noreply@github.com>2021-10-11 15:09:11 +0200
commit423b02d8891c73f1b2864271796b067c81007f50 (patch)
tree06ec43c623ad2c129c27b52609ada6dfcd2ea57e
parenta7baf5f2bbb50dc0cb571de141b800b9155faca7 (diff)
fix(ext/ffi): types for nonblocking FFI (#12345)
-rw-r--r--cli/dts/lib.deno.unstable.d.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts
index a7f4f2ef0..73f4bfcb2 100644
--- a/cli/dts/lib.deno.unstable.d.ts
+++ b/cli/dts/lib.deno.unstable.d.ts
@@ -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 */