libretto icon indicating copy to clipboard operation
libretto copied to clipboard

Source.divide

Open TomasMikula opened this issue 4 years ago • 0 comments

def divide[A]: Source[A] -⚬ (Source[A] |*| Source[A])

Forwards incoming element to whichever output polls first.

Biased and unbiased version.

Also, a version that divides elements equally between outputs, regardless of the demand.

TomasMikula avatar Jun 11 '20 22:06 TomasMikula