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 reading the channel_tests and I do have somewhat similar usecase as that of the tests which are calling invoke_waiting, where I initiate the channel by doing a send and at the same I want to be part part of "pipeline" somwhere in the middle and once I receive the result I want to return it to my caller.
tie(r, s) = channel(...)
...
auto middleMan // a receiver somewhere between "r" and "s"
..
s("start");
// once received at middleMan
return dataReceivedAtMiddleMan;
How should I design this to make it less blocking to my caller?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I was reading the channel_tests and I do have somewhat similar usecase as that of the tests which are calling invoke_waiting, where I initiate the channel by doing a
send
and at the same I want to be part part of "pipeline" somwhere in the middle and once I receive the result I want to return it to my caller.How should I design this to make it less blocking to my caller?
Beta Was this translation helpful? Give feedback.
All reactions