The type of the value that the promise resolves to.
A promise or promise-like object to await.
A promise that resolves to Some<T> if successful, or None if rejected.
Executes a function and returns Some with the result if successful, or None if it throws or rejects.
This overload accepts a function that may return a sync value or a Promise. It captures both synchronous exceptions (thrown before the Promise is created) and asynchronous rejections.
Similar to Promise.try, you can pass arguments to the function.
The type of the value returned or resolved by the function.
The types of the arguments to pass to the function.
A promise that resolves to Some<T> if successful, or None if thrown or rejected.
Executes an async operation and returns
Somewith the resolved value if successful, orNoneif it rejects.This overload accepts a Promise or PromiseLike object directly. Use this when you already have a Promise and only care about success/failure, not the error details.