Skip to content

Commit

Permalink
Update src/parallel.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Brian Chen <ToucheSir@users.noreply.github.com>
  • Loading branch information
CarloLucibello and ToucheSir authored Dec 30, 2023
1 parent 2592bad commit 76f7e13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parallel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ function Base.put!(f!, ringbuffer::RingBuffer)
return buf_
end

Base.put!(::Channel{T}, ::MLUtils.RingBuffer) = error("method not defined for RingBuffer")
Base.put!(c::Channel{T}, b::MLUtils.RingBuffer) = throw(MethodError(put!, (c, b)))

function Base.close(ringbuffer::RingBuffer, args...)
close(ringbuffer.results, args...)
Expand Down

0 comments on commit 76f7e13

Please sign in to comment.