-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
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
1 parent
110765a
commit 5ad48c7
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters