MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / async

Method async

include/fc/thread/thread.hpp:69–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67 */
68 template<typename Functor>
69 auto async( Functor&& f, const char* desc FC_TASK_NAME_DEFAULT_ARG, priority prio = priority()) -> fc::future<decltype(f())> {
70 typedef decltype(f()) Result;
71 typedef typename fc::deduce<Functor>::type FunctorType;
72 fc::task<Result,sizeof(FunctorType)>* tsk =
73 new fc::task<Result,sizeof(FunctorType)>( fc::forward<Functor>(f), desc );
74 fc::future<Result> r(fc::shared_ptr< fc::promise<Result> >(tsk,true) );
75 async_task(tsk,prio);
76 return r;
77 }
78 void poke();
79
80

Callers 14

scan_depositMethod · 0.80
get_characterFunction · 0.80
map_portMethod · 0.80
operator()Method · 0.80
accept_loopMethod · 0.80
logMethod · 0.80
get_historyMethod · 0.80
clear_historyMethod · 0.80
async_resolveMethod · 0.80
functorMethod · 0.80

Calls 1

priorityClass · 0.70

Tested by

no test coverage detected