coder82
07/02/2018, 9:46 PMJonathan Walsh
07/02/2018, 10:14 PMwhen capacity is 0 – creates RendezvousChannel without a buffer;
when capacity is Channel.UNLIMITED – creates LinkedListChannel with buffer of unlimited size;
when capacity is Channel.CONFLATED – creates ConflatedChannel that conflates back-to-back sends;
when capacity is positive, but less than UNLIMITED – creates ArrayChannel with a buffer of the specified capacity;
otherwise – throws IllegalArgumentException.
coder82
07/03/2018, 7:57 AM