Promise.withResolvers() <https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise/withResolvers> is a new JavaScript feature that has just shipped in Firefox 121.

It has exactly the same interface as our PromiseUtils.defer(), and so I have just landed patches <https://bugzilla.mozilla.org/show_bug.cgi?id=1864821> on autoland to replace PromiseUtils.defer() with Promise.withResolvers().

With the landing, PromiseUtils.defer() no longer exist. Please use Promise.withResolvers() in future.

Mark.

--
You received this message because you are subscribed to the Google Groups 
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/f95d64e8-48ed-4b1d-83de-5f43b3e7aeab%40mozilla.com.

Reply via email to