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

Description Jean-Yves Avenard [:jya] 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
Comment 1 Radar WebKit Bug Importer 2023-11-18 19:52:53 PST
<rdar://problem/118612313>
Comment 2 Jean-Yves Avenard [:jya] 2023-11-18 20:07:15 PST
Pull request: https://github.com/WebKit/WebKit/pull/20716
Comment 3 EWS 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.