mirror of
https://github.com/denoland/deno.git
synced 2025-07-23 05:05:08 +00:00
Make shutdown unstable and async (#4940)
This commit is contained in:
parent
de751e5221
commit
30dc9bb748
3 changed files with 6 additions and 3 deletions
2
cli/js/lib.deno.ns.d.ts
vendored
2
cli/js/lib.deno.ns.d.ts
vendored
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue