At the moment we have the function fromThrowable that will use just check to see if a function can throw something it will catch these errors and return a Result<T, E> from this. However I think it might be a good idea to use a ResultAsync<T,E> as well, with the necessary functions to handle async/promise based functions.
At the moment we have the function
fromThrowablethat will use just check to see if a function can throw something it will catch these errors and return aResult<T, E>from this. However I think it might be a good idea to use aResultAsync<T,E>as well, with the necessary functions to handle async/promise based functions.