1
This commit is contained in:
parent
1a93316b38
commit
4384bc7ac0
@ -97,6 +97,11 @@ namespace f8
|
||||
return awaiter->GetResult();
|
||||
}
|
||||
|
||||
std::shared_ptr<a8::Results> Coroutine::CoAwait(std::function<(std::shared_ptr<a8::Awaiter>)> cb)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void Coroutine::Attach()
|
||||
{
|
||||
list_add_tail(&exec_entry_, &CoMgr::Instance()->exec_list_);
|
||||
|
@ -19,6 +19,7 @@ namespace f8
|
||||
void CoResume();
|
||||
void CoYield();
|
||||
std::shared_ptr<a8::Results> CoAwait(std::shared_ptr<a8::Awaiter> awaiter);
|
||||
std::shared_ptr<a8::Results> CoAwait(std::function<(std::shared_ptr<a8::Awaiter>)> cb);
|
||||
std::shared_ptr<a8::Awaiter> Sleep(long long time);
|
||||
|
||||
private:
|
||||
|
Loading…
x
Reference in New Issue
Block a user