Creates a buffered channel with the given capacity.
buffer size (must be > 0).
Result.ok(buffered ChannelInt), or Result.error(ChannelError.INVALID_ARGUMENT) when capacity is not positive.