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
What is the preferred semantic to allow a given thread to timeout while waiting on a channel?
For example, assume that I have a producer that is going to input a certain amount of objects in a channel that is not known a priori, how can I write a consumer that is not going to deadlock as soon as the producer is finished?
Is there any such facility in the library or do I have to wrap the channel in user code? (is it even possible?).
The text was updated successfully, but these errors were encountered:
What is the preferred semantic to allow a given thread to timeout while waiting on a channel?
For example, assume that I have a producer that is going to input a certain amount of objects in a channel that is not known a priori, how can I write a consumer that is not going to deadlock as soon as the producer is finished?
Is there any such facility in the library or do I have to wrap the channel in user code? (is it even possible?).
The text was updated successfully, but these errors were encountered: