Make shutdown unstable and async (#4940)

This commit is contained in:
Luca Casonato 2020-04-28 07:36:47 +02:00 committed by GitHub
parent de751e5221
commit 30dc9bb748
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View file

@ -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.
*