akka

dataflow

package dataflow

Source
package.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. dataflow
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. implicit final class DataflowFuture[T] extends AnyVal

  2. implicit final class DataflowPromise[T] extends AnyVal

Deprecated Value Members

  1. def flow[A](body: ⇒ A @scala.util.continuations.cpsParam[scala.concurrent.Future[Any],scala.concurrent.Future[Any]])(implicit executor: ExecutionContext): Future[A]

    Captures a block that will be transformed into 'Continuation Passing Style' using Scala's Delimited Continuations plugin.

    Captures a block that will be transformed into 'Continuation Passing Style' using Scala's Delimited Continuations plugin.

    Within the block, the result of a Future may be accessed by calling Future.apply. At that point execution is suspended with the rest of the block being stored in a continuation until the result of the Future is available. If an Exception is thrown while processing, it will be contained within the resulting Future.

    This allows working with Futures in an imperative style without blocking for each result.

    Completing a Future using 'Promise << Future' will also suspend execution until the value of the other Future is available.

    The Delimited Continuations compiler plugin must be enabled in order to use this method.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.3) dataflow is deprecated, superseded by Scala Async

Inherited from AnyRef

Inherited from Any

Ungrouped