SafeResult<T> wrapped by Promise.
SafeResult<T>
Promise
The type of the value that is always produced.
1.8.0
async function loadCachedData(): AsyncSafeResult<Data> { const data = await cache.get('data'); return Ok(data ?? defaultData);} Copy
async function loadCachedData(): AsyncSafeResult<Data> { const data = await cache.get('data'); return Ok(data ?? defaultData);}
SafeResult<T>wrapped byPromise.