Skip to content

Commit

Permalink
Remove level of indirection by renaming callable to on_suspend
Browse files Browse the repository at this point in the history
  • Loading branch information
codeinred committed Aug 27, 2020
1 parent 5bdd02e commit ee64246
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/conduit/async/on_suspend.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
namespace conduit::async {
template <class F>
struct on_suspend_type : mixin::Resumable<on_suspend_type<F>> {
[[no_unique_address]] F func;
void on_suspend(std::coroutine_handle<> caller) { func(caller); }
[[no_unique_address]] F on_suspend;
};

template <class F>
Expand Down

0 comments on commit ee64246

Please sign in to comment.