libcoro  1.0
Coroutine support library for C++20

◆ subscribe()

template<typename T , typename Lock = nolock>
subscription coro::distributor< T, Lock >::subscribe ( ID  id = { })
inline

subscribe

Parameters
ididentifier of subsciber (optional)
Returns
future which is resolved with distributed event

Definition at line 107 of file distributor.h.