Lines Matching refs:F
82 template <class F>
83 void postAt(nsecs_t time, F&& func) { in postAt()
84 enqueue(WorkItem{time, std::function<void()>(std::forward<F>(func))}); in postAt()
87 template <class F>
88 void postDelayed(nsecs_t delay, F&& func) { in postDelayed()
89 enqueue(WorkItem{clock::now() + delay, std::function<void()>(std::forward<F>(func))}); in postDelayed()
92 template <class F>
93 void post(F&& func) { in post()
94 postAt(0, std::forward<F>(func)); in post()
97 template <class F>
98 auto async(F&& func) -> std::future<decltype(func())> {
100 auto task = std::make_shared<task_t>(std::forward<F>(func));
105 template <class F>
106 auto runSync(F&& func) -> decltype(func()) {
107 std::packaged_task<decltype(func())()> task{std::forward<F>(func)};