summaryrefslogtreecommitdiff
path: root/cli/js/lib.deno.ns.d.ts
diff options
context:
space:
mode:
authorLuca Casonato <lucacasonato@yahoo.com>2020-04-28 07:36:47 +0200
committerGitHub <noreply@github.com>2020-04-28 01:36:47 -0400
commit30dc9bb748f7885a8fd7fe1210e18bf45ee063b8 (patch)
tree9e24a53c4d6695ab70378a0dc06f63c5d63769d1 /cli/js/lib.deno.ns.d.ts
parentde751e5221cd2eafbdd9cddfb58b0619d74c0504 (diff)
Make shutdown unstable and async (#4940)
Diffstat (limited to 'cli/js/lib.deno.ns.d.ts')
-rw-r--r--cli/js/lib.deno.ns.d.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/js/lib.deno.ns.d.ts b/cli/js/lib.deno.ns.d.ts
index 6d354d034..3c568f798 100644
--- a/cli/js/lib.deno.ns.d.ts
+++ b/cli/js/lib.deno.ns.d.ts
@@ -1872,7 +1872,7 @@ declare namespace Deno {
* const conn = await listener.accept();
* Deno.shutdown(conn.rid, Deno.ShutdownMode.Write);
*/
- export function shutdown(rid: number, how: ShutdownMode): void;
+ export function shutdown(rid: number, how: ShutdownMode): Promise<void>;
/** **UNSTABLE**: new API, yet to be vetted.
*