You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`put!(ch::Channel{T}, v)` should convert `v` to type `T`.
This can prevent errors like:
```
julia> c = Channel{Int}(0)
Channel{Int64}(sz_max:0,sz_curr:0)
julia> @async put!(c, :a)
Task (runnable) @0x00007ff5b9d79270
julia> isready(c) && take!(c)
ERROR: TypeError: in take_unbuffered, in typeassert, expected Int64, got Symbol
Stacktrace:
[1] take_unbuffered(::Channel{Int64}) at ./channels.jl:323
[2] take!(::Channel{Int64}) at ./channels.jl:306
[3] top-level scope at none:0
```
0 commit comments