Function to check if Channel is full

This fixes the unbuffered channel case:

isfull(ch::Channel) = begin
    if ch.sz_max===0
        isready(ch)
    else
        length(ch.data) ≥ ch.sz_max
    end
end

2 Likes