[Webkit-unassigned] [Bug 242598] New: Refine C++ coroutine use
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Jul 11 11:57:04 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=242598
Bug ID: 242598
Summary: Refine C++ coroutine use
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebKit Misc.
Assignee: webkit-unassigned at lists.webkit.org
Reporter: achristensen at apple.com
Task::promise_type::final_suspend() needs to return a std::experimental::suspend_always instead of a std::experimental::suspend_never, otherwise it crashes if we ever use co_return. We don't yet, but we probably will.
ReceiveOperation and SendOperation inherit from std::experimental::suspend_never but override await_ready with an implementation more like std::experimental::suspend_always, and an await_suspend that actually does something interesting. Instead of inheriting from std::experimental::suspend_never, just write out everything it does, which just requires adding an await_resume that returns void.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220711/8c79e77b/attachment.htm>
More information about the webkit-unassigned
mailing list