try async
Updated on August 26, 2024Source code
createTryAsync
is a pipe that asynchronously transforms a function to the resolved value of its returned Promise
, or if the function fails, an Error
.
In other words, createTryAsync
is an async try
-catch
block in the form of a function.
Create try
Call createTryAsync
with no parameters to create your try
function.