take

fewer

Stream('a', 'b', 'c').take(2).compile.toList

diagram

fewer (with chunks)

Stream('a', 'b', 'c').take(2).compile.toList

diagram

more

Stream('a', 'b', 'c').take(5).compile.toList

diagram

more (with chunks)

Stream('a', 'b', 'c').take(5).compile.toList

diagram

from an infinite stream

Stream('a').repeat.take(2).compile.toList

diagram

from an infinite stream (with chunks)

Stream('a').repeat.take(2).compile.toList

diagram

from a drained stream

Stream('a', 'b', 'c').drain.take(2).compile.toList

diagram

from a drained stream (with chunks)

Stream('a', 'b', 'c').drain.take(2).compile.toList

diagram