Skip to content

Commit b1d152d

Browse files
authored
improve Channel special constructor docstring (#43979)
1 parent e376fcc commit b1d152d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

base/channels.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ Channel(sz=0) = Channel{Any}(sz)
6363
6464
Create a new task from `func`, bind it to a new channel of type
6565
`T` and size `size`, and schedule the task, all in a single call.
66+
The channel is automatically closed when the task terminates.
6667
6768
`func` must accept the bound channel as its only argument.
6869

0 commit comments

Comments
 (0)