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.
<rdar://problem/118671806>
Pull request: https://github.com/WebKit/WebKit/pull/20770
Committed 271010@main (9d59d5e94815): <https://commits.webkit.org/271010@main> Reviewed commits have been landed. Closing PR #20770 and removing active labels.