Home

Awesome

flyd-takeuntil

Emit values from a stream until a second stream emits a value.

Signature

Stream a -> Stream b -> Stream a

Example

// `s` will emit all values on `source` until `endStream` emits a value or ends
var s = takeUntil(source, endStream);