diff options
Diffstat (limited to 'core/lib.deno_core.d.ts')
-rw-r--r-- | core/lib.deno_core.d.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/lib.deno_core.d.ts b/core/lib.deno_core.d.ts index f33f6164a..59b2df542 100644 --- a/core/lib.deno_core.d.ts +++ b/core/lib.deno_core.d.ts @@ -21,6 +21,14 @@ declare namespace Deno { b?: any, ): Promise<any>; + /** Mark following promise as "ref", ie. event loop won't exit + * until all "ref" promises are resolved. All async ops are "ref" by default. */ + function refOp(promiseId: number): void; + + /** Mark following promise as "unref", ie. event loop will exit + * if there are only "unref" promises left. */ + function unrefOps(promiseId: number): void; + /** * Retrieve a list of all registered ops, in the form of a map that maps op * name to internal numerical op id. |