Skip to content

Commit

Permalink
Mark signal APIs as unstable (denoland#3779)
Browse files Browse the repository at this point in the history
  • Loading branch information
ry authored and bartlomieju committed Jan 24, 2020
1 parent 11a29fd commit fe427ee
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions cli/js/lib.deno_runtime.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>(
Expand All @@ -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.
*
Expand All @@ -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). */
Expand Down

0 comments on commit fe427ee

Please sign in to comment.