Skip to content

Commit ee64246

Browse files
committed
Remove level of indirection by renaming callable to on_suspend
1 parent 5bdd02e commit ee64246

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

include/conduit/async/on_suspend.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
namespace conduit::async {
88
template <class F>
99
struct on_suspend_type : mixin::Resumable<on_suspend_type<F>> {
10-
[[no_unique_address]] F func;
11-
void on_suspend(std::coroutine_handle<> caller) { func(caller); }
10+
[[no_unique_address]] F on_suspend;
1211
};
1312

1413
template <class F>

0 commit comments

Comments
 (0)