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