Deferring can mean different things, but generally `then` covers this well
(specifically, pushing execution of something to the end of the current
task).

    Promise.resolve().then(stuffToDefer);

I think there is a proposal for `Promise.try(stuffToDefer)`, which would
eliminate the need for the `resolve` bit.
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to