Open otto-dev opened 2 years ago
Closes #105. Allows to use catchAsync in place of catching for asynchronous contexts.
catchAsync
catching
Example usage:
Future<Either<dynamic, FooBar>> doAsyncThings() { return catchAsync(() async { final foo = await asyncAction(); final bar = await asyncAction(); return foo + bar; }); }
Went for catchAsync instead of catchingAsync.
catchingAsync
Closes #105. Allows to use
catchAsync
in place ofcatching
for asynchronous contexts.Example usage:
Went for
catchAsync
instead ofcatchingAsync
.