Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Channel{T}(f::Function) constructors. #30855

Merged
merged 6 commits into from
Aug 6, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Oops: removed custom output prompt from jldoctest
I copy/pasted from my terminal, and I had a custom output prompt set via
OhMyREPL that I didn't notice.
  • Loading branch information
NHDaly committed Jul 13, 2019
commit 64109f4c371d830af6b0d590572d1e4a9a664a50
4 changes: 2 additions & 2 deletions base/channels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,10 @@ julia> chnl = Channel{Char}(1) do ch
put!(ch, c)
end
end
>> Channel{Char}(sz_max:1,sz_curr:1)
Channel{Char}(sz_max:1,sz_curr:1)

julia> String(collect(chnl))
>> "hello world"
"hello world"
```
"""
function Channel(func::Function; ctype=Any, csize=0, taskref=nothing)
Expand Down