| 108 | |
| 109 | template <typename Fn> |
| 110 | auto CallAsync(Fn fn) |
| 111 | { |
| 112 | auto pTask = std::make_shared<std::packaged_task<decltype(fn()) ()>>(fn); |
| 113 | auto f = pTask->get_future(); |
| 114 | Add([pTask]() { (*pTask)(); }); |
| 115 | return f; |
| 116 | } |
| 117 | |
| 118 | bool IsExecutorThread() const; |
| 119 | bool IsIdle() const; |
nothing calls this directly
no outgoing calls
no test coverage detected