| 203 | } |
| 204 | template<typename Functor> |
| 205 | auto schedule( Functor&& f, const fc::time_point& t, const char* desc FC_TASK_NAME_DEFAULT_ARG, priority prio = priority()) -> fc::future<decltype(f())> { |
| 206 | return fc::thread::current().schedule( fc::forward<Functor>(f), t, desc, prio ); |
| 207 | } |
| 208 | |
| 209 | /** |
| 210 | * Call f() in thread t and block the current thread until it returns. |
no test coverage detected