From 0b0158805fcdfaaf336f10a99f8f4f7421f28aa4 Mon Sep 17 00:00:00 2001 From: azw Date: Sat, 19 Aug 2023 10:27:31 +0800 Subject: [PATCH] 1 --- f8/coroutine.cc | 6 ------ f8/coroutine.h | 2 -- 2 files changed, 8 deletions(-) diff --git a/f8/coroutine.cc b/f8/coroutine.cc index a094bcb..1c8796d 100644 --- a/f8/coroutine.cc +++ b/f8/coroutine.cc @@ -97,12 +97,6 @@ namespace f8 return awaiter->GetResult(); } - std::shared_ptr Coroutine::CoAwait - (std::function)> cb) - { - return CoAwait(std::make_shared(cb)); - } - void Coroutine::Attach() { list_add_tail(&exec_entry_, &CoMgr::Instance()->exec_list_); diff --git a/f8/coroutine.h b/f8/coroutine.h index 2ba5846..97f345b 100644 --- a/f8/coroutine.h +++ b/f8/coroutine.h @@ -19,8 +19,6 @@ namespace f8 void CoResume(); void CoYield(); std::shared_ptr CoAwait(std::shared_ptr awaiter); - std::shared_ptr CoAwait - (std::function)> cb); std::shared_ptr Sleep(long long time); private: