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
I was wondering if it would be possible to add a method that would set a coroutine object from the "outside".
For example
boost::cobalt::promise<std::string> request;
// save the promise somewhere in a data struct
// ....
// recieve some network data
// match it with a request
request.set(data);
this would then resume any coroutine that is currently co_awaited on this promise. I found a way around this by using async channels but was wondering if it would be at all possible to do this without them?
The text was updated successfully, but these errors were encountered:
Hi,
I was wondering if it would be possible to add a method that would set a coroutine object from the "outside".
For example
this would then resume any coroutine that is currently co_awaited on this promise. I found a way around this by using async channels but was wondering if it would be at all possible to do this without them?
The text was updated successfully, but these errors were encountered: