medikoo/deferred

Introduce Deferred.try(fn)

medikoo opened this issue · 0 comments

As an alternative to:

new Promise(resolve => resolve(fn()));

(assuming someone works with Deferred interface instead of Promise)