Encapsulates any value, adding a layer of indirection.
It is especially useful when an async function returns a Promise that should not be awaited: it can be wrapped instead.
async
Promise
await
the type of the wrapped value.
Readonly
Encapsulates any value, adding a layer of indirection.
It is especially useful when an
asyncfunction returns aPromisethat should not beawaited: it can be wrapped instead.