trait FutureModule extends Module[Future] with EnumerateeModule[Future] with EnumeratorErrorModule[Future, Throwable] with IterateeErrorModule[Future, Throwable]
- Alphabetic
- By Inheritance
- FutureModule
- IterateeErrorModule
- IterateeModule
- EnumeratorErrorModule
- EnumeratorModule
- EnumerateeModule
- Module
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
sealed
class
PerformPartiallyApplied[E] extends AnyRef
- Definition Classes
- EnumeratorModule
-
sealed
class
LiftToIterateePartiallyApplied[E] extends AnyRef
- Definition Classes
- IterateeModule
-
final
type
M[f[_]] = MonadError[f, Throwable]
- Definition Classes
- FutureModule → Module
Abstract Value Members
-
abstract
def
ec: ExecutionContext
- Attributes
- protected
Concrete Value Members
-
object
syntax
- Definition Classes
- Module
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
val
F: MonadError[Future, Throwable]
- Attributes
- protected
- Definition Classes
- FutureModule → Module
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
collect[O, I](pf: PartialFunction[O, I]): Enumeratee[Future, O, I]
Transform values using a scala.PartialFunction and drop values that aren't matched.
Transform values using a scala.PartialFunction and drop values that aren't matched.
- Definition Classes
- EnumerateeModule
-
final
def
consume[E]: Iteratee[Future, E, Vector[E]]
An Iteratee that collects all the elements in a stream in a vector.
An Iteratee that collects all the elements in a stream in a vector.
- Definition Classes
- IterateeModule
-
final
def
consumeIn[E, C[_]](implicit C: Applicative[C], M: MonoidK[C]): Iteratee[Future, E, C[E]]
An Iteratee that collects all the elements in a stream in a given collection type.
An Iteratee that collects all the elements in a stream in a given collection type.
- Definition Classes
- IterateeModule
-
final
def
cont[E, A](ifInput: (NonEmptyList[E]) ⇒ Iteratee[Future, E, A], ifEnd: Future[A]): Iteratee[Future, E, A]
Create an incomplete Iteratee that will use the given function to process the next input.
Create an incomplete Iteratee that will use the given function to process the next input.
- Definition Classes
- IterateeModule
-
final
def
cross[E1, E2](e2: Enumerator[Future, E2]): Enumeratee[Future, E1, (E1, E2)]
Transform a stream by taking the cross-product with the given Enumerator.
Transform a stream by taking the cross-product with the given Enumerator.
- Definition Classes
- EnumerateeModule
-
final
def
done[E, A](value: A): Iteratee[Future, E, A]
Create a new completed Iteratee with the given result.
Create a new completed Iteratee with the given result.
- Definition Classes
- IterateeModule
-
final
def
drop[E](n: Long): Enumeratee[Future, E, E]
An Enumeratee that drops a given number of the first values in a stream.
An Enumeratee that drops a given number of the first values in a stream.
- Definition Classes
- EnumerateeModule
-
final
def
dropI[E](n: Int): Iteratee[Future, E, Unit]
An Iteratee that drops a given number of the values from a stream.
An Iteratee that drops a given number of the values from a stream.
- Definition Classes
- IterateeModule
-
final
def
dropWhile[E](p: (E) ⇒ Boolean): Enumeratee[Future, E, E]
An Enumeratee that drops values from a stream as long as they satisfy the given predicate.
An Enumeratee that drops values from a stream as long as they satisfy the given predicate.
- Definition Classes
- EnumerateeModule
-
final
def
dropWhileI[E](p: (E) ⇒ Boolean): Iteratee[Future, E, Unit]
An Iteratee that drops values from a stream as long as they satisfy the given predicate.
An Iteratee that drops values from a stream as long as they satisfy the given predicate.
- Definition Classes
- IterateeModule
-
final
def
dropWhileM[E](p: (E) ⇒ Future[Boolean]): Enumeratee[Future, E, E]
An Enumeratee that drops values from a stream as long as they satisfy the given monadic predicate.
An Enumeratee that drops values from a stream as long as they satisfy the given monadic predicate.
- Definition Classes
- EnumerateeModule
-
final
def
empty[E]: Enumerator[Future, E]
An empty enumerator.
An empty enumerator.
- Definition Classes
- EnumeratorModule
-
final
def
enumEither[E](either: Either[Throwable, E]): Enumerator[Future, E]
An enumerator that either produces a single value or fails.
An enumerator that either produces a single value or fails.
- Definition Classes
- EnumeratorErrorModule
-
final
def
enumIndexedSeq[E](es: IndexedSeq[E], min: Int = 0, max: Int = Int.MaxValue): Enumerator[Future, E]
An enumerator that produces values from a slice of an indexed sequence.
An enumerator that produces values from a slice of an indexed sequence.
- Definition Classes
- EnumeratorModule
-
final
def
enumIterable[E](es: Iterable[E], chunkSize: Int = defaultChunkSize): Enumerator[Future, E]
An enumerator that produces values from an iterable collection.
An enumerator that produces values from an iterable collection.
- Definition Classes
- EnumeratorModule
-
final
def
enumList[E](es: List[E]): Enumerator[Future, E]
An enumerator that produces values from a list.
An enumerator that produces values from a list.
- Definition Classes
- EnumeratorModule
-
final
def
enumOne[E](e: E): Enumerator[Future, E]
An enumerator that produces a single value.
An enumerator that produces a single value.
- Definition Classes
- EnumeratorModule
-
final
def
enumStream[E](es: Stream[E], chunkSize: Int = defaultChunkSize): Enumerator[Future, E]
An enumerator that produces values from a stream.
An enumerator that produces values from a stream.
- Definition Classes
- EnumeratorModule
-
final
def
enumVector[E](es: Vector[E]): Enumerator[Future, E]
An enumerator that produces values from a vector.
An enumerator that produces values from a vector.
- Definition Classes
- EnumeratorModule
-
final
def
enumerate[E](xs: E*): Enumerator[Future, E]
An enumerator that produces the given values.
An enumerator that produces the given values.
- Definition Classes
- EnumeratorModule
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
failEnumerator[E](t: Throwable): Enumerator[Future, E]
Create a failed enumerator with the given error.
Create a failed enumerator with the given error.
- Definition Classes
- EnumeratorErrorModule
-
final
def
failIteratee[E, A](t: Throwable): Iteratee[Future, E, A]
Create a failed iteratee with the given error.
Create a failed iteratee with the given error.
- Definition Classes
- IterateeErrorModule
-
final
def
filter[E](p: (E) ⇒ Boolean): Enumeratee[Future, E, E]
Drop values that do not satisfy the given predicate.
Drop values that do not satisfy the given predicate.
- Definition Classes
- EnumerateeModule
-
final
def
filterM[E](p: (E) ⇒ Future[Boolean]): Enumeratee[Future, E, E]
Drop values that do not satisfy the given monadic predicate.
Drop values that do not satisfy the given monadic predicate.
- Definition Classes
- EnumerateeModule
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
flatMap[O, I](f: (O) ⇒ Enumerator[Future, I]): Enumeratee[Future, O, I]
Map a function returning an Enumerator over a stream and flatten the results.
Map a function returning an Enumerator over a stream and flatten the results.
- Definition Classes
- EnumerateeModule
-
final
def
flatMapM[O, I](f: (O) ⇒ Future[I]): Enumeratee[Future, O, I]
Map a function returning a value in a context over a stream.
Map a function returning a value in a context over a stream.
- Definition Classes
- EnumerateeModule
-
final
def
fold[E, A](init: A)(f: (A, E) ⇒ A): Iteratee[Future, E, A]
An Iteratee that folds a stream using an initial value and an accumulation function.
An Iteratee that folds a stream using an initial value and an accumulation function.
- Definition Classes
- IterateeModule
-
final
def
foldM[E, A](init: A)(f: (A, E) ⇒ Future[A]): Iteratee[Future, E, A]
An Iteratee that folds a stream using an initial value and a monadic accumulation function.
An Iteratee that folds a stream using an initial value and a monadic accumulation function.
- Definition Classes
- IterateeModule
-
final
def
foldMap[E, A](f: (E) ⇒ A)(implicit A: Monoid[A]): Iteratee[Future, E, A]
An Iteratee that combines values using a function to a type with a cats.Monoid instance.
An Iteratee that combines values using a function to a type with a cats.Monoid instance.
- Definition Classes
- IterateeModule
-
final
def
foldMapM[E, A](f: (E) ⇒ Future[A])(implicit A: Monoid[A]): Iteratee[Future, E, A]
An Iteratee that combines values using an effectful function to a type with a cats.Monoid instance.
An Iteratee that combines values using an effectful function to a type with a cats.Monoid instance.
- Definition Classes
- IterateeModule
-
final
def
foldMapMOption[E, A](f: (E) ⇒ Future[A])(implicit A: Semigroup[A]): Iteratee[Future, E, Option[A]]
An Iteratee that combines values using an effectful function to a type with a cats.Semigroup instance.
An Iteratee that combines values using an effectful function to a type with a cats.Semigroup instance.
- Definition Classes
- IterateeModule
-
final
def
foldMapOption[E, A](f: (E) ⇒ A)(implicit A: Semigroup[A]): Iteratee[Future, E, Option[A]]
An Iteratee that combines values using a function to a type with a cats.Semigroup instance.
An Iteratee that combines values using a function to a type with a cats.Semigroup instance.
- Definition Classes
- IterateeModule
-
final
def
foreach[E](f: (E) ⇒ Unit): Iteratee[Future, E, Unit]
An Iteratee that runs a function for its side effects.
An Iteratee that runs a function for its side effects.
- Definition Classes
- IterateeModule
-
final
def
foreachM[A](f: (A) ⇒ Future[Unit]): Iteratee[Future, A, Unit]
An Iteratee that runs an effectful function for its side effects.
An Iteratee that runs an effectful function for its side effects.
- Definition Classes
- IterateeModule
-
final
def
generateM[E](f: Future[Option[E]]): Enumerator[Future, E]
An enumerator that returns the result of an effectful operation until
None
is generated.An enumerator that returns the result of an effectful operation until
None
is generated.- Definition Classes
- EnumeratorModule
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
grouped[E](n: Int): Enumeratee[Future, E, Vector[E]]
Split the stream into groups of a given length.
Split the stream into groups of a given length.
- Definition Classes
- EnumerateeModule
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
head[E]: Iteratee[Future, E, Option[E]]
An Iteratee that returns the first value in a stream.
An Iteratee that returns the first value in a stream.
- Definition Classes
- IterateeModule
-
final
def
identityIteratee[E]: Iteratee[Future, E, Unit]
An iteratee that reads nothing from a stream.
An iteratee that reads nothing from a stream.
- Definition Classes
- IterateeModule
-
final
def
injectValue[E](e: E): Enumeratee[Future, E, E]
Inject a value into a stream.
Inject a value into a stream.
- Definition Classes
- EnumerateeModule
-
final
def
injectValues[E](es: Seq[E]): Enumeratee[Future, E, E]
Inject zero or more values into a stream.
Inject zero or more values into a stream.
- Definition Classes
- EnumerateeModule
-
final
def
intersperse[E](delim: E): Enumeratee[Future, E, E]
Add a value
delim
between every two items in a stream.Add a value
delim
between every two items in a stream.- Definition Classes
- EnumerateeModule
-
final
def
isEnd[E]: Iteratee[Future, E, Boolean]
An Iteratee that checks if the stream is at its end.
An Iteratee that checks if the stream is at its end.
- Definition Classes
- IterateeModule
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
iterate[E](init: E)(f: (E) ⇒ E): Enumerator[Future, E]
An enumerator that iteratively performs an operation and returns the results.
An enumerator that iteratively performs an operation and returns the results.
- Definition Classes
- EnumeratorModule
-
final
def
iterateM[E](init: E)(f: (E) ⇒ Future[E]): Enumerator[Future, E]
An enumerator that iteratively performs an effectful operation and returns the results.
An enumerator that iteratively performs an effectful operation and returns the results.
- Definition Classes
- EnumeratorModule
-
final
def
iterateUntil[E](init: E)(f: (E) ⇒ Option[E]): Enumerator[Future, E]
An enumerator that iteratively performs an operation until None is produced and returns the results.
An enumerator that iteratively performs an operation until None is produced and returns the results.
- Definition Classes
- EnumeratorModule
-
final
def
iterateUntilM[E](init: E)(f: (E) ⇒ Future[Option[E]]): Enumerator[Future, E]
An enumerator that iteratively performs an effectful operation until None is produced and returns the results.
An enumerator that iteratively performs an effectful operation until None is produced and returns the results.
- Definition Classes
- EnumeratorModule
-
final
def
last[E]: Iteratee[Future, E, Option[E]]
An Iteratee that returns the last value in a stream.
An Iteratee that returns the last value in a stream.
- Definition Classes
- IterateeModule
-
final
def
length[E]: Iteratee[Future, E, Long]
An Iteratee that counts the number of values in a stream.
An Iteratee that counts the number of values in a stream.
- Definition Classes
- IterateeModule
-
final
def
liftToEnumerator[E](fe: Future[E]): Enumerator[Future, E]
Lift an effectful value into an enumerator.
Lift an effectful value into an enumerator.
- Definition Classes
- EnumeratorModule
-
final
def
liftToIteratee[E]: LiftToIterateePartiallyApplied[E]
Lift an effectful value into an iteratee.
Lift an effectful value into an iteratee.
- Definition Classes
- IterateeModule
-
final
def
map[O, I](f: (O) ⇒ I): Enumeratee[Future, O, I]
Map a function over a stream.
Map a function over a stream.
- Definition Classes
- EnumerateeModule
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
peek[E]: Iteratee[Future, E, Option[E]]
An Iteratee that returns the first value in a stream without consuming it.
An Iteratee that returns the first value in a stream without consuming it.
- Definition Classes
- IterateeModule
-
final
def
perform[E]: PerformPartiallyApplied[E]
An enumerator that forces the evaluation of an effect when it is consumed.
An enumerator that forces the evaluation of an effect when it is consumed.
- Definition Classes
- EnumeratorModule
-
final
def
remainderWithResult[O, R, I](iteratee: Iteratee[Future, O, R])(f: (R, O) ⇒ I): Enumeratee[Future, O, I]
Run an iteratee and then use the provided function to combine the result with the remaining elements.
Run an iteratee and then use the provided function to combine the result with the remaining elements.
- Definition Classes
- EnumerateeModule
-
final
def
remainderWithResultM[O, R, I](iteratee: Iteratee[Future, O, R])(f: (R, O) ⇒ Future[I]): Enumeratee[Future, O, I]
Run an iteratee and then use the provided effectful function to combine the result with the remaining elements.
Run an iteratee and then use the provided effectful function to combine the result with the remaining elements.
- Definition Classes
- EnumerateeModule
-
final
def
repeat[E](e: E): Enumerator[Future, E]
An enumerator that repeats the given value indefinitely.
An enumerator that repeats the given value indefinitely.
- Definition Classes
- EnumeratorModule
-
final
def
reversed[E]: Iteratee[Future, E, List[E]]
An Iteratee that collects all inputs in reverse order.
An Iteratee that collects all inputs in reverse order.
- Definition Classes
- IterateeModule
-
final
def
scan[O, I](init: I)(f: (I, O) ⇒ I): Enumeratee[Future, O, I]
An Enumeratee that folds a stream and emits intermediate results.
An Enumeratee that folds a stream and emits intermediate results.
- Definition Classes
- EnumerateeModule
-
final
def
scanM[O, I](init: I)(f: (I, O) ⇒ Future[I]): Enumeratee[Future, O, I]
An Enumeratee that folds a stream using an effectful function while emitting intermediate results.
An Enumeratee that folds a stream using an effectful function while emitting intermediate results.
- Definition Classes
- EnumerateeModule
-
final
def
sequenceI[O, I](iteratee: Iteratee[Future, O, I]): Enumeratee[Future, O, I]
Apply the given Iteratee repeatedly.
Apply the given Iteratee repeatedly.
- Definition Classes
- EnumerateeModule
-
final
def
splitOn[E](p: (E) ⇒ Boolean): Enumeratee[Future, E, Vector[E]]
Split the stream using the given predicate to identify delimiters.
Split the stream using the given predicate to identify delimiters.
- Definition Classes
- EnumerateeModule
-
final
def
sum[E](implicit E: Monoid[E]): Iteratee[Future, E, E]
An Iteratee that combines values using an cats.Monoid instance.
An Iteratee that combines values using an cats.Monoid instance.
- Definition Classes
- IterateeModule
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
take[E](n: Long): Enumeratee[Future, E, E]
An Enumeratee that takes a given number of the first values in a stream.
An Enumeratee that takes a given number of the first values in a stream.
- Definition Classes
- EnumerateeModule
-
final
def
takeI[E](n: Int): Iteratee[Future, E, Vector[E]]
An Iteratee that returns a given number of the first values in a stream.
An Iteratee that returns a given number of the first values in a stream.
- Definition Classes
- IterateeModule
-
final
def
takeWhile[E](p: (E) ⇒ Boolean): Enumeratee[Future, E, E]
An Enumeratee that takes values from a stream as long as they satisfy the given predicate.
An Enumeratee that takes values from a stream as long as they satisfy the given predicate.
- Definition Classes
- EnumerateeModule
-
final
def
takeWhileI[E](p: (E) ⇒ Boolean): Iteratee[Future, E, Vector[E]]
An Iteratee that returns values from a stream as long as they satisfy the given predicate.
An Iteratee that returns values from a stream as long as they satisfy the given predicate.
- Definition Classes
- IterateeModule
-
final
def
takeWhileM[E](p: (E) ⇒ Future[Boolean]): Enumeratee[Future, E, E]
An Enumeratee that takes values from a stream as long as they satisfy the given monadic predicate.
An Enumeratee that takes values from a stream as long as they satisfy the given monadic predicate.
- Definition Classes
- EnumerateeModule
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
uniq[E](implicit E: Eq[E]): Enumeratee[Future, E, E]
Collapse consecutive duplicates.
Collapse consecutive duplicates.
- Definition Classes
- EnumerateeModule
- Note
Assumes that the stream is sorted.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
zipWithIndex[E]: Enumeratee[Future, E, (E, Long)]
Zip with the number of elements that have been encountered.
Zip with the number of elements that have been encountered.
- Definition Classes
- EnumerateeModule