Reputation: 399
I'm only just learning scala and I see existing code using an operator: &> and I cannot find anything with google search. I don't understand what it is doing.
Code snippet:
Ok.feed(producer &> EventSource()).as("text/event-stream")
Upvotes: 0
Views: 84
Reputation: 5424
It's a metod of Enumeratee
trait and as docs says is an alias for apply
method. Which is also an alias for applyOn
which by docs :
Create a new Iteratee that feeds its input, potentially modifying it along the way, into the inner Iteratee, and produces that Iteratee as its result.
Upvotes: 2