From 423b02d8891c73f1b2864271796b067c81007f50 Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Mon, 11 Oct 2021 18:39:11 +0530 Subject: [PATCH] fix(ext/ffi): types for nonblocking FFI (#12345) --- cli/dts/lib.deno.unstable.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts index a7f4f2ef0d..73f4bfcb24 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 */