From 758230a28b99aa5b5a752cba70e2d933980fb040 Mon Sep 17 00:00:00 2001 From: Micah Rufsvold <86363075+mrufsvold@users.noreply.github.com> Date: Mon, 28 Oct 2024 23:05:57 -0400 Subject: [PATCH] fix isopen example --- base/channels.jl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/base/channels.jl b/base/channels.jl index 0a6d0e0ca67ea..72e55e86e744c 100644 --- a/base/channels.jl +++ b/base/channels.jl @@ -227,6 +227,7 @@ julia> c = Channel(ch -> put!(ch, 1), 1); julia> isopen(c) false # channel is closed to new `put!`s +# even though the channel is closed, it still contains elements julia> isready(c) true @@ -234,6 +235,7 @@ juiia> take!(c) 1 julia> isready(c) +false ``` Unbuffered channel: