Improved means to create a Future
with no existing async context
#20
Labels
Milestone
Future
with no existing async context
#20
JavaScript's
Promise
library providesPromise.try()
as a static method primarily for the purpose of folding error handling of "before the async stuff starts" code into the async model, so that the developer doesn't need to handle both sync and async errors:or
These cases correspond neatly to
Future
'smap(to:)
andflatMap(to:)
methods - I propose adding static variations, like so:or
The text was updated successfully, but these errors were encountered: