flyd-cacheUntil
Cache a stream's output until triggered by another stream. Returns an Immutable.List of cached values.
Signature
Stream<E> -> Stream -> Stream<List<E>>
Usage
;;/* or */; const stream = flyd;const trigger = flyd;const cachedStream = ;/* or */const cachedStream = ; flyd; 2345;; 'b''c''d''e';; // Output: List [ 1, 2, 3, 4, 5 ]// Output: List [ "a", "b", "c", "d", "e" ]