Skip to content

Commit

Permalink
add type parameter to AbstractChannel. fixes JuliaLang#28124 (Julia…
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson authored and StefanKarpinski committed Jul 19, 2018
1 parent b012ab3 commit c6a949a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/channels.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is a part of Julia. License is MIT: https://julialang.org/license

abstract type AbstractChannel end
abstract type AbstractChannel{T} end

"""
Channel{T}(sz::Int)
Expand All @@ -17,7 +17,7 @@ Other constructors:
* `Channel(Inf)`: equivalent to `Channel{Any}(typemax(Int))`
* `Channel(sz)`: equivalent to `Channel{Any}(sz)`
"""
mutable struct Channel{T} <: AbstractChannel
mutable struct Channel{T} <: AbstractChannel{T}
cond_take::Condition # waiting for data to become available
cond_put::Condition # waiting for a writeable slot
state::Symbol
Expand Down

0 comments on commit c6a949a

Please sign in to comment.