buffered
Description:
public static Result<
Channel<
T>,
Error>
buffered<
T> (
int capacity)
Creates a buffered channel.
Parameters:
| capacity |
buffer size (must be > 0).
|
Returns:
|
Result.ok(buffered channel), or Result.error(ChannelError.INVALID_ARGUMENT) when capacity is not positive.
|