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
- Alphabetic
- By Inheritance
- BindAsync
- Serializable
- Serializable
- Product
- Equals
- Future
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new BindAsync(onFinish: ((A) ⇒ Free.Trampoline[Unit]) ⇒ Unit, f: (A) ⇒ Future[B])
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
after(t: Duration)(implicit scheduler: ScheduledExecutorService = Strategy.DefaultTimeoutScheduler): Future[B]
Returns a
Future
that delays the execution of thisFuture
by the durationt
.Returns a
Future
that delays the execution of thisFuture
by the durationt
.- Definition Classes
- Future
-
def
afterMillis(delay: Long)(implicit scheduler: ScheduledExecutorService = Strategy.DefaultTimeoutScheduler): Future[B]
- Definition Classes
- Future
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val f: (A) ⇒ Future[B]
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
flatMap[B](f: (B) ⇒ Future[B]): Future[B]
- Definition Classes
- Future
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
map[B](f: (B) ⇒ B): Future[B]
- Definition Classes
- Future
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- val onFinish: ((A) ⇒ Free.Trampoline[Unit]) ⇒ Unit
-
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 thisFuture
.- Definition Classes
- Future
- Annotations
- @tailrec()
-
final
def
stepInterruptibly(cancel: AtomicBoolean): Future[B]
Like
step
, but may be interrupted by settingcancel
to true.Like
step
, but may be interrupted by settingcancel
to true.- Definition Classes
- Future
- Annotations
- @tailrec()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
timed(timeout: Duration)(implicit scheduler: ScheduledExecutorService = Strategy.DefaultTimeoutScheduler): Future[\/[Throwable, B]]
- Definition Classes
- Future
-
def
timed(timeoutInMillis: Long)(implicit scheduler: ScheduledExecutorService): Future[\/[Throwable, B]]
Returns a
Future
which returns aTimeoutException
aftertimeoutInMillis
, and attempts to cancel the running computation.Returns a
Future
which returns aTimeoutException
aftertimeoutInMillis
, and attempts to cancel the running computation. This implementation will not block the future's execution thread- Definition Classes
- Future
-
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 thisFuture
will be forced in the calling thread. At the firstAsync
encountered, control switches to whatever thread backs theAsync
and this function returns.- Definition Classes
- Future
-
def
unsafePerformAsyncInterruptibly(cb: (B) ⇒ Unit, cancel: AtomicBoolean): Unit
Run this computation to obtain an
A
, so long ascancel
remains false.Run this computation to obtain an
A
, so long ascancel
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
-
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 seeunsafePerformAsync
.- Definition Classes
- Future
-
def
unsafePerformListenInterruptibly(cb: (B) ⇒ Free.Trampoline[Unit], cancel: AtomicBoolean): Unit
Run this computation to obtain an
A
, so long ascancel
remains false.Run this computation to obtain an
A
, so long ascancel
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
-
def
unsafePerformSync: B
Run this
Future
and block awaiting its result.Run this
Future
and block awaiting its result.- Definition Classes
- Future
-
def
unsafePerformSyncAttemptFor(timeout: Duration): \/[Throwable, B]
- Definition Classes
- Future
-
def
unsafePerformSyncAttemptFor(timeoutInMillis: Long): \/[Throwable, B]
Like
unsafePerformSyncFor
, but returnsTimeoutException
as left value.Like
unsafePerformSyncFor
, but returnsTimeoutException
as left value. Will not report any other exceptions that may be raised during computation ofA
- Definition Classes
- Future
-
def
unsafePerformSyncFor(timeout: Duration): B
- Definition Classes
- Future
-
def
unsafePerformSyncFor(timeoutInMillis: Long): B
Run this
Future
and block until its result is available, or untiltimeoutInMillis
milliseconds have elapsed, at which point aTimeoutException
will be thrown and theFuture
will attempt to be canceled.Run this
Future
and block until its result is available, or untiltimeoutInMillis
milliseconds have elapsed, at which point aTimeoutException
will be thrown and theFuture
will attempt to be canceled.- Definition Classes
- Future
-
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 tounsafePerformIO
. The resultingFuture
cannot be rerun to repeat the effects.Use with care.
- Definition Classes
- Future
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )