An Enumeratee that checks to ensure that the passed in Iteratee is not done before doing any work.
A partially-applied function returned by the collect
method.
A partially-applied function returned by the grouped
method.
A partially-applied function returned by the map
method.
A partially-applied function returned by the mapConcat
method.
A partially-applied function returned by the mapConcatInput
method.
A partially-applied function returned by the mapFlatten
method.
A partially-applied function returned by the mapInput
method.
A partially-applied function returned by the mapInputFlatten
method.
A partially-applied function returned by the mapInputM
method.
A partially-applied function returned by the mapM
method.
A partially-applied function returned by the scanLeft
method.
Create an Enumeratee that passes input through until a predicate is satisfied.
Create an Enumeratee that passes input through until a predicate is satisfied. Once the predicate is satisfied, no more input is passed through.
A predicate to test the input with.
The context to execute the supplied function with. The context is prepared on the calling thread before being used.
Create an Enumeratee that both filters and transforms its input.
Create an Enumeratee that both filters and transforms its input. The input is transformed by the given PartialFunction. If the PartialFunction isn't defined for an input element then that element is discarded.
Create an Enumeratee that drops input until a predicate is satisfied.
Create an Enumeratee that drops input until a predicate is satisfied.
A predicate to test the input with.
The context to execute the supplied function with. The context is prepared on the calling thread before being used.
Create an Enumeratee that filters the inputs using the given predicate
Create an Enumeratee that filters the inputs using the given predicate
A function to filter the input elements.
The context to execute the supplied function with. The context is prepared on the calling thread before being used.
Create an Enumeratee that filters the inputs using the negation of the given predicate
Create an Enumeratee that filters the inputs using the negation of the given predicate
A function to filter the input elements.
The context to execute the supplied function with. The context is prepared on the calling thread before being used.
flatten a scala.concurrent.Future of play.api.libs.iteratee.Enumeratee] into an Enumeratee
flatten a scala.concurrent.Future of play.api.libs.iteratee.Enumeratee] into an Enumeratee
a future of enumeratee
Create an Enumeratee that groups input using the given Iteratee.
Create an Enumeratee that groups input using the given Iteratee.
This will apply that Iteratee over and over, passing the result each time as the input for the target Iteratee, until EOF is reached. For example, let's say you had an Iteratee that took a stream of characters and parsed a single line:
def takeLine = for { line <- Enumeratee.takeWhile[Char](_ != '\n') &>> Iteratee.getChunks _ <- Enumeratee.take(1) &>> Iteratee.ignore[Char] } yield line.mkString
This could be used to build an Enumeratee that converts a stream of characters into a stream of lines:
def asLines = Enumeratee.grouped(takeLine)
Create an Enumeratee which transforms its input using a given function
Create an Enumeratee that transforms its input elements into a sequence of input elements for the target Iteratee.
Create an enumeratee that transforms its input into a sequence of inputs for the target iteratee.
Create an Enumeratee that transforms its input elements into an Enumerator that is fed into the target Iteratee.
Create an Enumeratee that transforms its input using the given function.
Create an Enumeratee that transforms its input using the given function.
This is like the map
function, except that it allows the Enumeratee to, for example, send EOF to the inner
iteratee before EOF is encountered.
Create an Enumeratee that transforms its input into an Enumerator that is fed into the target Iteratee.
Like mapInput
, but allows the map function to asynchronously return the mapped input.
Like map
, but allows the map function to asynchronously return the mapped element.
Create an Enumeratee that performs an action on EOF.
Create an Enumeratee that performs an action on EOF.
The action to perform.
The context to execute the supplied function with. The context is prepared on the calling thread before being used.
Create an Enumeratee that performs an action when its Iteratee is done.
Create an Enumeratee that performs an action when its Iteratee is done.
The action to perform.
The context to execute the supplied function with. The context is prepared on the calling thread before being used.
An enumeratee that passes all input through until EOF is reached, redeeming the final iteratee with EOF as the left over input.
Create an Enumeratee that recovers an iteratee in Error state.
Create an Enumeratee that recovers an iteratee in Error state.
This will ignore the input that caused the iteratee's error state and use the previous state of the iteratee to handle the next input.
Enumerator(0, 2, 4) &> Enumeratee.recover { (error, input) => Logger.error(f"oops failure occurred with input: $input", error) } &> Enumeratee.map { i => 8 / i } |>>> Iteratee.getChunks // => List(4, 2)
Called when an error occurs with the cause of the error and the input associated with the error.
The context to execute the supplied function with. The context is prepared on the calling thread before being used.
Create an Enumeratee that will take count
input elements to pass to the target Iteratee, and then be done
Create an Enumeratee that will take count
input elements to pass to the target Iteratee, and then be done
The number of elements to take
Create an Enumeratee that passes input through while a predicate is satisfied.
Create an Enumeratee that passes input through while a predicate is satisfied. Once the predicate fails, no more input is passed through.
A predicate to test the input with.
The context to execute the supplied function with. The context is prepared on the calling thread before being used.
Create an Enumeratee that zips two Iteratees together.
Create an Enumeratee that zips two Iteratees together.
Each input gets passed to each Iteratee, and the result is a tuple of both of their results.
If either Iteratee encounters an error, the result will be an error.
The Enumeratee will continue consuming input until both inner Iteratees are done. If one inner Iteratee finishes before the other, the result of that Iteratee is held, and the one continues by itself, until it too is finished.
Create an Enumeratee that zips two Iteratees together, using the passed in zipper function to combine the results of the two.
Create an Enumeratee that zips two Iteratees together, using the passed in zipper function to combine the results of the two.
The first Iteratee to combine.
The second Iteratee to combine.
Used to combine the results of each Iteratee.
The context to execute the supplied function with. The context is prepared on the calling thread before being used.