Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions source/exec.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2816,13 +2816,13 @@
auto fn = [&, fun]() noexcept { fun(std::forward<Ts>(as)...); };

struct awaiter {
decltype(@\exposid{fn}@) @\exposid{fn}@; // \expos
decltype(fn) @\exposid{fn}@; // \expos

static constexpr bool await_ready() noexcept { return false; }
void await_suspend(coroutine_handle<>) noexcept { @\exposid{fn}@(); }
[[noreturn]] void await_resume() noexcept { unreachable(); }
};
return awaiter{@\exposid{fn}@};
return awaiter{fn};

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be better to rename the outer fn?

}

@\exposid{operation-state-task}@ @\exposid{connect-awaitable}@(DS sndr, DR rcvr) requires @\libconcept{receiver_of}@<DR, Sigs> {
Expand Down