Skip to content

Commit

Permalink
Promises: Return a PromiseCapability from react
Browse files Browse the repository at this point in the history
  • Loading branch information
ADKaster authored and domenic committed Oct 29, 2024
1 parent 33c2eec commit 128fbfe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -8325,8 +8325,9 @@ IDL [=promise type=] values are represented by JavaScript [=PromiseCapability=]

Note: Not all callers will use the returned {{Promise}}. Implementations might wish to
avoid creating |newCapability| in those cases.
1. Return [$PerformPromiseThen$](|promise|.\[[Promise]], |onFulfilled|, |onRejected|,
1. Perform [$PerformPromiseThen$](|promise|.\[[Promise]], |onFulfilled|, |onRejected|,
|newCapability|).
1. Return |newCapability|.

Note: This algorithm will behave in a very similar way to the
{{%Promise.prototype.then%|promise.then()}} method.
Expand Down

0 comments on commit 128fbfe

Please sign in to comment.