forked from boostorg/beast
Rename to async_op_base::invoke_now
This commit is contained in:
1 parent
a781285e2f
commit
fdaf2ea7e1
20 files changed
+30
-29
No files matched your search
@@ -594,7 +594,7 @@ public:
|
||||
}
|
||||
|
||||
// Call the completion handler with the result
|
||||
this->invoke(ec, total_bytes_transferred_);
|
||||
this->invoke_now(ec, total_bytes_transferred_);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -681,7 +681,7 @@ public:
|
||||
}
|
||||
|
||||
// The base class destroys the temporary data automatically, before invoking the final completion handler
|
||||
this->invoke(ec);
|
||||
this->invoke_now(ec);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -179,7 +179,7 @@ public:
|
||||
void operator()(error_code ec, std::size_t bytes_transferred)
|
||||
{
|
||||
stream_.bytes_read_ += bytes_transferred;
|
||||
this->invoke(ec, bytes_transferred);
|
||||
this->invoke_now(ec, bytes_transferred);
|
||||
}
|
||||
};
|
||||
net::async_completion<ReadHandler, void(error_code, std::size_t)> init{handler};
|
||||
@@ -214,7 +214,7 @@ public:
|
||||
void operator()(error_code ec, std::size_t bytes_transferred)
|
||||
{
|
||||
stream_.bytes_written_ += bytes_transferred;
|
||||
this->invoke(ec, bytes_transferred);
|
||||
this->invoke_now(ec, bytes_transferred);
|
||||
}
|
||||
};
|
||||
net::async_completion<WriteHandler, void(error_code, std::size_t)> init{handler};
|
||||
|
||||
Reference in new issue
Block a user