|
morph 0.1.0
Asynchronous bridge between GUI thread and business models
|
A non-owning handle that posts to the loop only while it exists. More...
#include <io_loop.hpp>
Public Member Functions | |
| template<class F> | |
| bool | post (F &&task) const |
Posts task if the loop still exists. | |
A non-owning handle that posts to the loop only while it exists.
For a callback that another executor runs and that may outlive the component that armed it — a RemoteServer reply arriving on a pool thread after its transport has gone.
Definition at line 91 of file io_loop.hpp.
|
inline |
Posts task if the loop still exists.
| F | A copyable callable taking no arguments. |
| task | What to run on the loop thread. |
task was dropped. Definition at line 98 of file io_loop.hpp.