You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but, that kind of refactoring only works with asio.
we have some old lib that accepts callbacks. now I want to call that old lib function and "co_await" for the callback to be invoked.
hint: I warpped the Executor for the old lib, so the old lib and async_simple runs in the same Executor. I need a way to convert
"lazy<>" to some old style callbacks. and let that callback to resume the calling lazy<>
The text was updated successfully, but these errors were encountered:
the referenced document says to use
async_xxx(param, callbackhandler)
to
co_await async_xxx(param);
but, that kind of refactoring only works with asio.
we have some old lib that accepts callbacks. now I want to call that old lib function and "co_await" for the callback to be invoked.
hint: I warpped the Executor for the old lib, so the old lib and async_simple runs in the same Executor. I need a way to convert
"lazy<>" to some old style callbacks. and let that callback to resume the calling lazy<>
The text was updated successfully, but these errors were encountered: