scalaz.concurrent

Future

object Future

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

Type Members

  1. case class Async[+A](onFinish: ((A) ⇒ Free.Trampoline[Unit]) ⇒ Unit) extends Future[A] with Product with Serializable

  2. case class BindAsync[A, B](onFinish: ((A) ⇒ Free.Trampoline[Unit]) ⇒ Unit, f: (A) ⇒ Future[B]) extends Future[B] with Product with Serializable

  3. case class BindSuspend[A, B](thunk: () ⇒ Future[A], f: (A) ⇒ Future[B]) extends Future[B] with Product with Serializable

  4. case class Now[+A](a: A) extends Future[A] with Product with Serializable

  5. case class Suspend[+A](thunk: () ⇒ Future[A]) extends Future[A] with Product with Serializable

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def apply[A](a: ⇒ A)(implicit pool: ExecutorService = Strategy.DefaultExecutorService): Future[A]

    Create a Future that will evaluate a using the given ExecutorService.

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def async[A](listen: ((A) ⇒ Unit) ⇒ Unit): Future[A]

    Create a Future from an asynchronous computation, which takes the form of a function with which we can register a callback.

    Create a Future from an asynchronous computation, which takes the form of a function with which we can register a callback. This can be used to translate from a callback-based API to a straightforward monadic version. See Task.async for a version that allows for asynchronous exceptions.

  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def delay[A](a: ⇒ A): Future[A]

    Promote a non-strict value to a Future.

    Promote a non-strict value to a Future. Note that since Future is unmemoized, this will recompute a each time it is sequenced into a larger computation. Memoize a with a lazy value before calling this function if memoization is desired.

  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def fork[A](a: ⇒ Future[A])(implicit pool: ExecutorService = Strategy.DefaultExecutorService): Future[A]

    Returns a Future that produces the same result as the given Future, but forks its evaluation off into a separate (logical) thread, using the given ExecutorService.

    Returns a Future that produces the same result as the given Future, but forks its evaluation off into a separate (logical) thread, using the given ExecutorService. Note that this forking is only described by the returned Future--nothing occurs until the Future is run.

  15. implicit val futureInstance: Nondeterminism[Future]

  16. def gatherUnordered[A](fs: Seq[Future[A]]): Future[List[A]]

    Calls Nondeterminism[Future].gatherUnordered.

    Calls Nondeterminism[Future].gatherUnordered.

    Since

    7.0.3

  17. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  18. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  23. def now[A](a: A): Future[A]

    Convert a strict value to a Future.

  24. def suspend[A](f: ⇒ Future[A]): Future[A]

    Produce f in the main trampolining loop, Future.step, using a fresh call stack.

    Produce f in the main trampolining loop, Future.step, using a fresh call stack. The standard trampolining primitive, useful for avoiding stack overflows.

  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  26. def toString(): String

    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped