This commit is contained in:
azw 2023-08-19 10:27:03 +08:00
parent 888275763f
commit fe229f0bb1
2 changed files with 0 additions and 18 deletions

View File

@ -4,9 +4,4 @@
namespace a8
{
void CbPromise::DoAwait()
{
cb_(Awaiter::shared_from_this());
}
}

View File

@ -9,17 +9,4 @@ namespace a8
{
};
class CbPromise : public Awaiter
{
public:
CbPromise(std::function<void (std::shared_ptr<a8::Awaiter>)> cb):Awaiter()
{ cb_ = cb; }
protected:
virtual void DoAwait() override;
private:
std::function<void (std::shared_ptr<a8::Awaiter>)> cb_;
};
}