Bug 265175
| Summary: | invokeAsync should let you call method returning Expected<T, U> | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Jean-Yves Avenard [:jya] <jean-yves.avenard> |
| Component: | Web Template Framework | Assignee: | 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 | ||
Jean-Yves Avenard [:jya]
mentioned in https://github.com/WebKit/WebKit/pull/20665
Right now, you have to create a new NativePromise<T, U> to return an Expected<T, U>
We could instead have a utility method doing Ref<NativePromise<T, U>> createSettledPromise(Expected<T, U>&&);
or have invokeAsync handle method returning an Expected, and automatically wrap a native promise around the result.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/118671806>
Jean-Yves Avenard [:jya]
Pull request: https://github.com/WebKit/WebKit/pull/20770
EWS
Committed 271010@main (9d59d5e94815): <https://commits.webkit.org/271010@main>
Reviewed commits have been landed. Closing PR #20770 and removing active labels.