Promise.withResolvers()

Term side of the Card
Topic: Promise
Unit title: Promise.withResolvers()
Categories: Method
Explanation side of the Card

Explanation: The static method that creates a `Promise` object with its own resolve and reject functions, allowing manual resolution or rejection from outside the promise executor function.

Browser compatibility:
  • The chrome browser supports this feature starting from version 119
  • The edge browser supports this feature starting from version 119
  • The firefox browser supports this feature starting from version 121
  • The safari browser supports this feature starting from version 17.4
Availability: