Class

scalaz.concurrent.Future

Now

Related Doc: package Future

Permalink

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

Source
Future.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Now
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Future
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Now(a: A)

    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 a: A

    Permalink
  5. def after(t: Duration)(implicit scheduler: ScheduledExecutorService = Strategy.DefaultTimeoutScheduler): Future[A]

    Permalink

    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
  6. def afterMillis(delay: Long)(implicit scheduler: ScheduledExecutorService = Strategy.DefaultTimeoutScheduler): Future[A]

    Permalink
    Definition Classes
    Future
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

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

    Permalink
    Definition Classes
    AnyRef
  10. def finalize(): Unit

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

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

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

    Permalink
    Definition Classes
    Any
  14. def map[B](f: (A) ⇒ B): Future[B]

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

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

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

    Permalink
    Definition Classes
    AnyRef
  18. final def step: Future[A]

    Permalink

    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()
  19. final def stepInterruptibly(cancel: AtomicBoolean): Future[A]

    Permalink

    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()
  20. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

    Permalink

    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
  23. def unsafePerformAsync(cb: (A) ⇒ Unit): Unit

    Permalink

    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
  24. def unsafePerformAsyncInterruptibly(cb: (A) ⇒ Unit, cancel: AtomicBoolean): Unit

    Permalink

    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
  25. def unsafePerformListen(cb: (A) ⇒ Free.Trampoline[Unit]): Unit

    Permalink

    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
  26. def unsafePerformListenInterruptibly(cb: (A) ⇒ Free.Trampoline[Unit], cancel: AtomicBoolean): Unit

    Permalink

    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
  27. def unsafePerformSync: A

    Permalink

    Run this Future and block awaiting its result.

    Run this Future and block awaiting its result.

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

    Permalink
    Definition Classes
    Future
  29. def unsafePerformSyncAttemptFor(timeoutInMillis: Long): \/[Throwable, A]

    Permalink

    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
  30. def unsafePerformSyncFor(timeout: Duration): A

    Permalink
    Definition Classes
    Future
  31. def unsafePerformSyncFor(timeoutInMillis: Long): A

    Permalink

    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
  32. def unsafeStart: Future[A]

    Permalink

    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
  33. final def wait(): Unit

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

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

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

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Future[A]

Inherited from AnyRef

Inherited from Any

Ungrouped