|
◆ deliver() [2/2]
template<typename T , bool atomic>
template<std::invocable< function< prepared_coro()> > Fn>
deliver notification through the function
- Parameters
-
fn | A function which receives another function which must be executed. You can for example pass the function to a thread pool for the execution. Return value of the function can be ignored. However it can carry a coroutine handle, you can use this value to improve scheduling. If the return value is ignored, the coroutine is resumed. |
Definition at line 112 of file future.h.
|