Skip to content

Commit

Permalink
fix isopen example
Browse files Browse the repository at this point in the history
  • Loading branch information
mrufsvold authored Oct 29, 2024
1 parent 7423937 commit 758230a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions base/channels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -227,13 +227,15 @@ 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
juiia> take!(c)
1
julia> isready(c)
false
```
Unbuffered channel:
Expand Down

0 comments on commit 758230a

Please sign in to comment.