Syntax support.
Syntax support. We retain different constructors for future resolving vs. not.
*:: constructs and deconstructs deferred tails **:: constructs and deconstructs eager tails
Adds an implicit method to efficiently convert a Seq[A] to a Spool[A]
The empty spool.
Lazily builds a Spool from a Seq.
Lazily builds a Spool from a Seq.
The main difference between this and seqToSpool
is that this method also
consumes the Seq lazily, which means if used with Streams, it will
preserve laziness.
Merges spools as they're ready, or evenly between the ready spools if there's more than one ready, until every spool is empty.
Merges spools as they're ready, or evenly between the ready spools if there's more than one ready, until every spool is empty. Fails the tail of the returned Spool when any of the Spools you're merging over fails.
(Since version 6.14.1) Use *:: instead: the ABI for this method will be changing.
Cons a value & tail to a new {{Spool}}.
Cons a value & tail to a new {{Spool}}. To defer the tail of the Spool, use the {{*::}} operator instead.
(Since version 6.14.1) Use *:: instead: the ABI for this method will be changing.
Note: Spool is no longer the recommended asynchronous stream abstraction. We encourage you to use AsyncStream instead.
Note: There is a Java-friendly API for this object: com.twitter.concurrent.Spools.