mirror of
https://github.com/Naios/continuable.git
synced 2025-12-06 16:56:44 +08:00
minor improvements
This commit is contained in:
parent
ed89738b00
commit
d61c36a418
@ -27,7 +27,8 @@ Continuable<std::string> continuable =
|
|||||||
```c++
|
```c++
|
||||||
Continuable<ResultSet> mysql_query(std::string&& query)
|
Continuable<ResultSet> mysql_query(std::string&& query)
|
||||||
{
|
{
|
||||||
return make_continuable([query = std::move(query)](Callback<ResultSet>&& callback) mutable
|
return make_continuable(
|
||||||
|
[query = std::move(query)](Callback<ResultSet>&& callback) mutable
|
||||||
{
|
{
|
||||||
// Pass the callback to the handler
|
// Pass the callback to the handler
|
||||||
// which calls the callback when finished.
|
// which calls the callback when finished.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user