https://github.com/JuliaLang/julia
Revision 73da74eddbc31d195018f10009de63dbde642e00 authored by Elliot Saba on 15 July 2020, 19:32:56 UTC, committed by Jeff Bezanson on 21 July 2020, 20:41:01 UTC
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.

(cherry picked from commit 44815002b377ca503d9c1e8adb28abed976a5ed1)
1 parent 01881af
History
Tip revision: 73da74eddbc31d195018f10009de63dbde642e00 authored by Elliot Saba on 15 July 2020, 19:32:56 UTC
Make `isempty(c::Channel)` a non-mutating operation (#36641)
Tip revision: 73da74e
File Mode Size
.devcontainer
base
contrib
deps
doc
etc
src
stdlib
test
ui
.appveyor.yml -rw-r--r-- 2.1 KB
.gitattributes -rw-r--r-- 65 bytes
.gitignore -rw-r--r-- 273 bytes
.mailmap -rw-r--r-- 11.0 KB
.travis.yml -rw-r--r-- 6.1 KB
CITATION.bib -rw-r--r-- 2.6 KB
CONTRIBUTING.md -rw-r--r-- 19.9 KB
HISTORY.md -rw-r--r-- 275.6 KB
LICENSE.md -rw-r--r-- 5.0 KB
Make.inc -rw-r--r-- 44.1 KB
Makefile -rw-r--r-- 26.9 KB
NEWS.md -rw-r--r-- 16.4 KB
README.md -rw-r--r-- 6.3 KB
VERSION -rw-r--r-- 10 bytes
sysimage.mk -rw-r--r-- 3.9 KB

README.md

back to top