1
This commit is contained in:
parent
888275763f
commit
fe229f0bb1
@ -4,9 +4,4 @@
|
||||
namespace a8
|
||||
{
|
||||
|
||||
void CbPromise::DoAwait()
|
||||
{
|
||||
cb_(Awaiter::shared_from_this());
|
||||
}
|
||||
|
||||
}
|
||||
|
13
a8/promise.h
13
a8/promise.h
@ -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_;
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user