fanOut


Description:

public static Result<ArrayList<Channel<T>>,Error> fanOut<T> (Channel<T> src, int n)

Distributes values from source channel to n output channels.

Parameters:

src

source channel.

n

number of output channels.

Returns:

Result.ok(output channels), or Result.error(ChannelError.INVALID_ARGUMENT) when n is not positive.