libcoro  1.0
Coroutine support library for C++20

◆ enqueue()

template<typename CondVar >
template<std::invocable<> Fn>
bool coro::thread_pool_t< CondVar >::enqueue ( Fn &&  fn)
inline

enqueue function

Parameters
fnfunction to enqueue
Return values
truesuccess
falsecalled when thread pool is stopped

Definition at line 54 of file thread_pool.h.

+ Here is the caller graph for this function: