- Try<T, E>(asyncblock, finallyInput?): Promise<Result<T, E>>
Parameters
- asyncblock: (() => Promise<T>)
- (): Promise<T>
Returns Promise<T>
Optional
finallyInput: (() => void)
Returns Promise<Result<T, E>>
Promise<Result<T, E>>
- Try<T, E>(block): Result<T, E>
Try async monad