length


Description:

public abstract int64 length { get; }

The current number of data in the channel.

Unbuffered channels are always zero-length.

If the channel is unbounded and contains more than int64.MAX elements, returns int64.MAX.

Note. This may or may not be a constant-time operation. If not, this requires a traversal of the elements, and so may return inaccurate results if modified during traversal.