import * as mod from "https://deno.land/std@0.220.1/async/mod.ts";
Provide help with asynchronous tasks like delays, debouncing, deferring, or pooling.
import { delay } from "https://deno.land/std@0.220.1/async/delay.ts";
await delay(100); // waits for 100 milliseconds
Classes
Error thrown when | |
Multiplexes multiple async iterators into a single stream. It currently makes an assumption that the final result (the value returned and not yielded from the iterator) does not matter; if there is any result, it is discarded. | |
Error thrown in |
Variables
Error message emitted from the thrown error while mapping. |
Functions
Make | |
Make AsyncIterable abortable with the given signal. | |
Make Promise abortable with the given signal. | |
Create a promise which will be rejected with | |
Creates a debounced function that delays the given | |
Resolve a | |
pooledMap transforms values from an (async) iterable into another async iterable. The transforms are done concurrently, with a max concurrency defined by the poolLimit. | |
Calls the given (possibly asynchronous) function up to | |
f tee | Branches the given async iterable into the |
Interfaces
Options for | |
A debounced function that will be delayed by a given | |
Options for | |
Options for |
Type Aliases
Utility for representing n-tuple. Used in | |
Utility for representing n-tuple of. Used in |