1
This commit is contained in:
parent
bdb5e79713
commit
79d7cce34b
@ -128,7 +128,7 @@ void TimerPromise::DoAwait()
|
|||||||
f8::Timer::Instance()->SetTimeout
|
f8::Timer::Instance()->SetTimeout
|
||||||
(
|
(
|
||||||
time_,
|
time_,
|
||||||
[this, self = shared_from_this()] (int event, const a8::Args* args) mutable
|
[this, _self = shared_from_this()] (int event, const a8::Args* args) mutable
|
||||||
{
|
{
|
||||||
if (event == a8::TIMER_EXEC_EVENT) {
|
if (event == a8::TIMER_EXEC_EVENT) {
|
||||||
done_ = true;
|
done_ = true;
|
||||||
|
@ -21,6 +21,7 @@ namespace a8
|
|||||||
class Awaiter : public std::enable_shared_from_this<Awaiter>
|
class Awaiter : public std::enable_shared_from_this<Awaiter>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
virtual ~Awaiter() {};
|
||||||
|
|
||||||
std::shared_ptr<a8::Results> GetResult()
|
std::shared_ptr<a8::Results> GetResult()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user