@tempots/dom
Async() function
Creates a renderable asynchronous task that wraps a promise.
Signature:
Async: (promise: Promise, options: AsyncOptions | ((value: T) => TNode)) => Renderable
Parameters
Parameter |
Type |
Description |
---|---|---|
promise |
Promise |
The promise to wrap. |
options |
AsyncOptions |
The options for the asynchronous task. |
Returns: Renderable
The renderable asynchronous task.