Skip to content

Commit

Permalink
fix(rstream): add note about Awaited<T> type sig (1c82afa)
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Nov 19, 2021
1 parent 2ec8edc commit efd8647
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions packages/rstream/src/promises.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@ import { __optsWithID } from "./idgen.js";
import { fromPromise } from "./promise.js";

/**
* Wraps given iterable in `Promise.all()` to yield {@link Stream} of
* results in same order as arguments, then closes.
* Wraps given iterable in `Promise.all()` to yield {@link Stream} of results in
* same order as arguments, then closes.
*
* @remarks
* If any of the promises rejects, all others will do so too. In this
* case the stream calls {@link ISubscriber.error} in all of its
* subscribers.
* If any of the promises rejects, all others will do so too. In this case the
* stream calls {@link ISubscriber.error} in all of its subscribers.
*
* @remarks
* Type signature updated to use `Awaited<T>`, a new core type introduced in
* TypeScript 4.5.
*
* @example
* ```ts
Expand Down

0 comments on commit efd8647

Please sign in to comment.