Skip to content
Browse files

Enumerator.run

  • Loading branch information...
1 parent 17c750b commit acc87cb86e3faf16bebde079b063c679da64a0b1 @sadache sadache committed Jun 4, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 framework/src/play/src/main/scala/play/api/libs/iteratee/Enumerator.scala
View
2 framework/src/play/src/main/scala/play/api/libs/iteratee/Enumerator.scala
@@ -22,6 +22,8 @@ trait Enumerator[E] {
def |>>>[A](i: Iteratee[E, A]): Promise[A] = apply(i).flatMap(_.run)
+ def run[A](i: Iteratee[E, A]): Promise[A] = |>>>(i)
+
def |>>|[A](i: Iteratee[E, A]): Promise[Step[E,A]] = apply(i).flatMap(_.unflatten)
/**

0 comments on commit acc87cb

Please sign in to comment.
Something went wrong with that request. Please try again.