Bug 265102 - [NativePromise] Remove need to provide SerialFunctionDispatch to all and allSettled
Summary: [NativePromise] Remove need to provide SerialFunctionDispatch to all and allS...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Template Framework (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jean-Yves Avenard [:jya]
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-11-18 19:37 PST by Jean-Yves Avenard [:jya]
Modified: 2023-11-21 17:19 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.