diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2020-01-24 10:58:18 -0500 |
---|---|---|
committer | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-01-24 16:58:17 +0100 |
commit | fe427eedb17ee45e247a936143bf8fc29c55780f (patch) | |
tree | 963e5c8875776ecd5d0776555e402d7494978153 /cli/js/lib.deno_runtime.d.ts | |
parent | 11a29fdb44f5c07f4bc7aa49a136b695ee17f0c3 (diff) |
Mark signal APIs as unstable (#3779)
Diffstat (limited to 'cli/js/lib.deno_runtime.d.ts')
-rw-r--r-- | cli/js/lib.deno_runtime.d.ts | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/cli/js/lib.deno_runtime.d.ts b/cli/js/lib.deno_runtime.d.ts index 1dfa3209f..31a6dbb3e 100644 --- a/cli/js/lib.deno_runtime.d.ts +++ b/cli/js/lib.deno_runtime.d.ts @@ -2130,8 +2130,11 @@ declare namespace Deno { */ export const args: string[]; - /** SignalStream represents the stream of signals, implements both - * AsyncIterator and PromiseLike */ + /** UNSTABLE new API. + * + * SignalStream represents the stream of signals, implements both + * AsyncIterator and PromiseLike + */ export class SignalStream implements AsyncIterator<void>, PromiseLike<void> { constructor(signal: typeof Deno.Signal); then<T, S>( @@ -2142,7 +2145,9 @@ declare namespace Deno { [Symbol.asyncIterator](): AsyncIterator<void>; dispose(): void; } - /** + + /** UNSTABLE new API. + * * Returns the stream of the given signal number. You can use it as an async * iterator. * @@ -2168,6 +2173,8 @@ declare namespace Deno { * The above for-await loop exits after 5 seconds when sig.dispose() is called. */ export function signal(signo: number): SignalStream; + + /** UNSTABLE new API. */ export const signals: { /** Returns the stream of SIGALRM signals. * This method is the shorthand for Deno.signal(Deno.Signal.SIGALRM). */ |