MCPcopy Create free account
hub / github.com/baidu/babylon / bthread_async

Function bthread_async

example/use-execution-queue/bthread_executor.h:46–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44// 使用bthread线程池的async
45template <typename S = ::babylon::ButexInterface, typename C, typename... Args>
46inline Future<typename ::std::result_of<typename ::std::decay<C>::type(
47 typename ::std::decay<Args>::type...)>::type,
48 S>
49bthread_async(C&& callable, Args&&... args) noexcept {
50 return BthreadExecutor::instance().execute<S>(::std::forward<C>(callable),
51 ::std::forward<Args>(args)...);
52}
53
54BABYLON_NAMESPACE_END

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected