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
async
function returns aPromise
that should not beawait
ed: it can be wrapped instead.