diff options
| author | Jack Mordaunt <jackmordaunt.dev@gmail.com> | 2025-06-12 15:41:48 -0300 |
|---|---|---|
| committer | Jack Mordaunt <jackmordaunt.dev@gmail.com> | 2025-06-12 17:35:49 -0300 |
| commit | 760d8c1cdd870aa3f48aceb6c6a9de0e9b57b001 (patch) | |
| tree | b9385021863860e00dbb29ea8bf3e9ac4c4b2aa6 /src/check_type.cpp | |
| parent | 2d12e265ccb51ce6385f56a53e2ea261eb92ac82 (diff) | |
core/sync/chan.send: return false if channel is closed while blocked
This commit makes send behave the same as recv: that the call will
return false if the channel is closed while a thread is waiting on the
blocking operation.
Prior logic would have send return true even if the channel was actually
closed rather than read from.
Docs adjusted to make this clear.
Tests added to lock in this behaviour.
Diffstat (limited to 'src/check_type.cpp')
0 files changed, 0 insertions, 0 deletions