buffered


Description:

public static Result<ChannelString,Error> buffered (int capacity)

Creates a buffered string channel.

Parameters:

capacity

buffer size (must be > 0).

Returns:

Result.ok(buffered ChannelString), or Result.error(ChannelError.INVALID_ARGUMENT) when capacity is not positive.