RESOLVED FIXED 265175
invokeAsync should let you call method returning Expected<T, U>
https://bugs.webkit.org/show_bug.cgi?id=265175
Summary invokeAsync should let you call method returning Expected<T, U>
Jean-Yves Avenard [:jya]
Reported 2023-11-20 21:54:59 PST
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
Radar WebKit Bug Importer
Comment 1 2023-11-20 21:55:18 PST
Jean-Yves Avenard [:jya]
Comment 2 2023-11-20 21:59:54 PST
EWS
Comment 3 2023-11-21 04:44:42 PST
Committed 271010@main (9d59d5e94815): <https://commits.webkit.org/271010@main> Reviewed commits have been landed. Closing PR #20770 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.