-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
invokeAsync should let you call method returning Expected<T, U>
https://bugs.webkit.org/show_bug.cgi?id=265175 rdar://118671806 Reviewed by Youenn Fablet. Add createSettledPromise(Expected&&> utility method. Add API tests. * Source/WTF/wtf/NativePromise.h: (WTF::createSettledPromise): (WTF::invokeAsync): * Source/WTF/wtf/TypeTraits.h: Add IsExpected template. * Tools/TestWebKitAPI/Tests/WTF/NativePromise.cpp: (TestWebKitAPI::TEST): Canonical link: https://commits.webkit.org/271010@main
- Loading branch information
Showing
3 changed files
with
88 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters