scalaz.concurrent.Future

BindAsync

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

Source
Future.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. BindAsync
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Future
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BindAsync(onFinish: ((A) ⇒ Free.Trampoline[Unit]) ⇒ Unit, f: (A) ⇒ Future[B])

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 after(t: Long): Future[B]

    Definition Classes
    Future
  7. def after(t: Duration): Future[B]

    Returns a Future that delays the execution of this Future by the duration t.

    Returns a Future that delays the execution of this Future by the duration t.

    Definition Classes
    Future
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. val f: (A) ⇒ Future[B]

  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def flatMap[B](f: (B) ⇒ Future[B]): Future[B]

    Definition Classes
    Future
  14. final def getClass(): Class[_]

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

    Definition Classes
    Any
  16. def map[B](f: (B) ⇒ B): Future[B]

    Definition Classes
    Future
  17. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  20. val onFinish: ((A) ⇒ Free.Trampoline[Unit]) ⇒ Unit

  21. final def step: Future[B]

    Evaluate this Future to a result, or another asynchronous computation.

    Evaluate this Future to a result, or another asynchronous computation. This has the effect of stripping off any 'pure' trampolined computation at the start of this Future.

    Definition Classes
    Future
    Annotations
    @tailrec()
  22. final def stepInterruptibly(cancel: AtomicBoolean): Future[B]

    Like step, but may be interrupted by setting cancel to true.

    Like step, but may be interrupted by setting cancel to true.

    Definition Classes
    Future
    Annotations
    @tailrec()
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  24. def timed(timeout: Duration)(implicit scheduler: ScheduledExecutorService = Strategy.DefaultTimeoutScheduler): Future[\/[Throwable, B]]

    Definition Classes
    Future
  25. def timed(timeoutInMillis: Long)(implicit scheduler: ScheduledExecutorService): Future[\/[Throwable, B]]

    Returns a Future which returns a TimeoutException after timeoutInMillis, and attempts to cancel the running computation.

    Returns a Future which returns a TimeoutException after timeoutInMillis, and attempts to cancel the running computation. This implementation will not block the future's execution thread

    Definition Classes
    Future
  26. def unsafePerformAsync(cb: (B) ⇒ Unit): Unit

    Run this Future, passing the result to the given callback once available.

    Run this Future, passing the result to the given callback once available. Any pure, non-asynchronous computation at the head of this Future will be forced in the calling thread. At the first Async encountered, control switches to whatever thread backs the Async and this function returns.

    Definition Classes
    Future
  27. def unsafePerformAsyncInterruptibly(cb: (B) ⇒ Unit, cancel: AtomicBoolean): Unit

    Run this computation to obtain an A, so long as cancel remains false.

    Run this computation to obtain an A, so long as cancel remains false. Because of trampolining, we get frequent opportunities to cancel while stepping through the trampoline, this should provide a fairly robust means of cancellation.

    Definition Classes
    Future
  28. def unsafePerformListen(cb: (B) ⇒ Free.Trampoline[Unit]): Unit

    Run this computation to obtain an A, then invoke the given callback.

    Run this computation to obtain an A, then invoke the given callback. Also see unsafePerformAsync.

    Definition Classes
    Future
  29. def unsafePerformListenInterruptibly(cb: (B) ⇒ Free.Trampoline[Unit], cancel: AtomicBoolean): Unit

    Run this computation to obtain an A, so long as cancel remains false.

    Run this computation to obtain an A, so long as cancel remains false. Because of trampolining, we get frequent opportunities to cancel while stepping through the trampoline, so this should provide a fairly robust means of cancellation.

    Definition Classes
    Future
  30. def unsafePerformSync: B

    Run this Future and block awaiting its result.

    Run this Future and block awaiting its result.

    Definition Classes
    Future
  31. def unsafePerformSyncAttemptFor(timeout: Duration): \/[Throwable, B]

    Definition Classes
    Future
  32. def unsafePerformSyncAttemptFor(timeoutInMillis: Long): \/[Throwable, B]

    Like unsafePerformSyncFor, but returns TimeoutException as left value.

    Like unsafePerformSyncFor, but returns TimeoutException as left value. Will not report any other exceptions that may be raised during computation of A

    Definition Classes
    Future
  33. def unsafePerformSyncFor(timeout: Duration): B

    Definition Classes
    Future
  34. def unsafePerformSyncFor(timeoutInMillis: Long): B

    Run this Future and block until its result is available, or until timeoutInMillis milliseconds have elapsed, at which point a TimeoutException will be thrown and the Future will attempt to be canceled.

    Run this Future and block until its result is available, or until timeoutInMillis milliseconds have elapsed, at which point a TimeoutException will be thrown and the Future will attempt to be canceled.

    Definition Classes
    Future
  35. def unsafeStart: Future[B]

    Begins running this Future and returns a new future that blocks waiting for the result.

    Begins running this Future and returns a new future that blocks waiting for the result. Note that this will start executing side effects immediately, and is thus morally equivalent to unsafePerformIO. The resulting Future cannot be rerun to repeat the effects.

    Use with care.

    Definition Classes
    Future
  36. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def attemptRunFor(timeout: Duration): \/[Throwable, B]

    Definition Classes
    Future
    Annotations
    @deprecated
    Deprecated

    (Since version 7.2) use unsafePerformSyncAttemptFor

  2. def attemptRunFor(timeoutInMillis: Long): \/[Throwable, B]

    Definition Classes
    Future
    Annotations
    @deprecated
    Deprecated

    (Since version 7.2) use unsafePerformSyncAttemptFor

  3. def listen(cb: (B) ⇒ Free.Trampoline[Unit]): Unit

    Definition Classes
    Future
    Annotations
    @deprecated
    Deprecated

    (Since version 7.2) use unsafePerformListen

  4. def listenInterruptibly(cb: (B) ⇒ Free.Trampoline[Unit], cancel: AtomicBoolean): Unit

    Definition Classes
    Future
    Annotations
    @deprecated
    Deprecated

    (Since version 7.2) use unsafePerformListenInterruptibly

  5. def run: B

    Definition Classes
    Future
    Annotations
    @deprecated
    Deprecated

    (Since version 7.2) use unsafePerformSync

  6. def runAsync(cb: (B) ⇒ Unit): Unit

    Definition Classes
    Future
    Annotations
    @deprecated
    Deprecated

    (Since version 7.2) use unsafePerformAsync

  7. def runAsyncInterruptibly(cb: (B) ⇒ Unit, cancel: AtomicBoolean): Unit

    Definition Classes
    Future
    Annotations
    @deprecated
    Deprecated

    (Since version 7.2) use unsafePerformAsyncInterruptibly

  8. def runFor(timeout: Duration): B

    Definition Classes
    Future
    Annotations
    @deprecated
    Deprecated

    (Since version 7.2) use unsafePerformSyncFor

  9. def runFor(timeoutInMillis: Long): B

    Definition Classes
    Future
    Annotations
    @deprecated
    Deprecated

    (Since version 7.2) use unsafePerformSyncFor

  10. def start: Future[B]

    Definition Classes
    Future
    Annotations
    @deprecated
    Deprecated

    (Since version 7.2) use unsafeStart

  11. def unsafePerformTimed(timeoutInMillis: Long)(implicit scheduler: ScheduledExecutorService): Future[\/[Throwable, B]]

    Definition Classes
    Future
    Annotations
    @deprecated
    Deprecated

    (Since version 7.2) use timed

  12. def unsafePerformTimed(timeout: Duration)(implicit scheduler: ScheduledExecutorService = Strategy.DefaultTimeoutScheduler): Future[\/[Throwable, B]]

    Definition Classes
    Future
    Annotations
    @deprecated
    Deprecated

    (Since version 7.2) use timed

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Future[B]

Inherited from AnyRef

Inherited from Any

Ungrouped