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
close is not atomic and can be considered as two actions: "remove and cancel waiting receivers" and "add closed token". If send occurs between these actions, send will be stuck in the channel
The text was updated successfully, but these errors were encountered:
Make close, cancel, isClosedForSend, isClosedForReceive and offer linearizable with other operations
Fix bug when send operation can be stuck in channel forever
New concurrency tests
Fixes#359
The following code may lose
send
coroutine:T1:
channel.send()
T2
channel.receive(); channel.close()
close
is not atomic and can be considered as two actions: "remove and cancel waiting receivers" and "add closed token". Ifsend
occurs between these actions,send
will be stuck in the channelThe text was updated successfully, but these errors were encountered: