This is the formal specification for a proposed Promise.withResolvers method
in JavaScript. It modifies the original ECMAScript specification with
several new or revised clauses. See the proposal's
explainer for the proposal's background, motivation, and usage examples.
1 Control Abstraction Objects
1.1 Promise Objects
1.1.1 Properties of the Promise Constructor
1.1.1.1 Promise.withResolvers ( )
This function returns an object with three properties: a new promise plus the resolve and reject functions associated with that promise.