Object/Class

scalaz.concurrent

Future

Related Docs: class Future | package concurrent

Permalink

object Future

Source
Future.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Future
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
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

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

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

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

    Permalink
  5. type ParallelFuture[A] = TagKind.@@[Future[A], Parallel]

    Permalink

    type for Futures which need to be executed in parallel when using an Applicative instance

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

    Permalink

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. val FutureIsomorphism: Isomorphism.<~>[Future, [γ$0$]IndexedContsT[[X]X, Unit, Unit, [A]Free[Function0, A], γ$0$]]

    Permalink
  5. def apply[A](a: ⇒ A)(implicit pool: ExecutorService = Strategy.DefaultExecutorService): Future[A]

    Permalink

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

  6. final def asInstanceOf[T0]: T0

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

    Permalink

    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.

  8. def clone(): AnyRef

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

    Permalink

    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.

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

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

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

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

    Permalink

    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.

  14. implicit val futureInstance: Nondeterminism[Future]

    Permalink
  15. implicit val futureParallelApplicativeInstance: Applicative[ParallelFuture]

    Permalink

    This Applicative instance runs Futures in parallel.

    This Applicative instance runs Futures in parallel.

    It is different from the Applicative instance obtained from Monad[Future] which runs futures sequentially.

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

    Permalink

    Calls Nondeterminism[Future].gatherUnordered.

    Calls Nondeterminism[Future].gatherUnordered.

    Since

    7.0.3

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

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

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

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

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

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

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

    Permalink

    Convert a strict value to a Future.

  24. def reduceUnordered[A, M](fs: IList[Future[A]])(implicit arg0: Reducer[A, M], arg1: Monoid[M]): Future[M]

    Permalink
  25. def schedule[A](a: ⇒ A, delay: Duration)(implicit pool: ScheduledExecutorService = Strategy.DefaultTimeoutScheduler): Future[A]

    Permalink

    Create a Future that will evaluate a after at least the given delay.

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

    Permalink

    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.

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

    Permalink
    Definition Classes
    AnyRef
  28. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped