# frozen_string_literal: true require_relative './exceptions' module Polyphony # Implements a unidirectional communication channel along the lines of Go # (buffered) channels. class Channel < Polyphony::Queue alias_method :receive, :shift def close flush_waiters(Polyphony::MoveOn.new) end end end