-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add more request examples #192
Conversation
63fc7ee
to
ed9c99c
Compare
ed9c99c
to
0e583ee
Compare
examples/request_callback.cpp
Outdated
|
||
// All IO is asynchronous, therefore we have a choice here, what should be our CompletionToken. | ||
// We use callback function that will be called after operation is finished. | ||
const auto callback = [result] (ozo::error_code ec, auto connection) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The callback may be a functional object with the result stored as std::unique_ptr
. Ozo now works fine with non-copyable callbacks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Codecov Report
@@ Coverage Diff @@
## master #192 +/- ##
======================================
Coverage 95.1% 95.1%
======================================
Files 79 79
Lines 1737 1737
Branches 472 472
======================================
Hits 1652 1652
Misses 28 28
Partials 57 57 Continue to review full report at Codecov.
|
Close until it's done. |
No description provided.