MT Core (C++)
Core library for replacing C++ standard in project usage
|
Select option to receive a message and calls a callback on receive. More...
#include <select.hpp>
Public Types | |
using | Message = typename R::Message |
Public Member Functions | |
Result< void, SelectOptionErrors > | attempt () |
bool | prevents_deadlock () const noexcept |
Public Attributes | |
R & | channel |
Callback | callback |
Select option to receive a message and calls a callback on receive.
R | Receiver to receive from |
Callback | Callback on receive |
Definition at line 286 of file select.hpp.
using mtcore::thread::ReceiveOption< R, Callback >::Message = typename R::Message |
Definition at line 287 of file select.hpp.
|
inline |
Definition at line 291 of file select.hpp.
|
inlinenodiscardnoexcept |
Definition at line 300 of file select.hpp.
Callback mtcore::thread::ReceiveOption< R, Callback >::callback |
Definition at line 289 of file select.hpp.
R& mtcore::thread::ReceiveOption< R, Callback >::channel |
Definition at line 288 of file select.hpp.