Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make
isempty(c::Channel)
a non-mutating operation (JuliaLang#36641)
Previously, `isempty(c::Channel)` would fall back to `iterate(c) === nothing`, which actually consumed a value from the channel. Instead, let's just define it in terms of its internal datastructures.
- Loading branch information