Bug 265102

Summary: [NativePromise] Remove need to provide SerialFunctionDispatch to all and allSettled
Product: WebKit Reporter: Jean-Yves Avenard [:jya] <jean-yves.avenard>
Component: Web Template FrameworkAssignee: Jean-Yves Avenard [:jya] <jean-yves.avenard>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=265096

Jean-Yves Avenard [:jya]
Reported 2023-11-18 19:37:38 PST
In bug 265096, we added a private `whenSettled` override that do not take a SerialFunctionDispatcher, when used the resolver callback is immediately executed. This feature can be extended to NativePromise::all and NativePromise::allSettled so that you no longer need to pass a SerialFunctionDispatcher , simplifying the use and making the syntax closer to JS promise
Attachments
Radar WebKit Bug Importer
Comment 1 2023-11-18 19:52:53 PST
Jean-Yves Avenard [:jya]
Comment 2 2023-11-18 20:07:15 PST
EWS
Comment 3 2023-11-21 17:19:44 PST
Committed 271032@main (9cfcc4e4e46b): <https://commits.webkit.org/271032@main> Reviewed commits have been landed. Closing PR #20716 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.