com
.
geteit
.
concurrent
CancellableFuture
Related Docs:
object CancellableFuture
|
package concurrent
class
CancellableFuture
[
+A
]
extends
Awaitable
[
A
]
Self Type
CancellableFuture
[
A
]
Linear Supertypes
Awaitable
[
A
],
AnyRef
,
Any
Ordering
Alphabetic
By inheritance
Inherited
CancellableFuture
Awaitable
AnyRef
Any
Hide All
Show all
Visibility
Public
All
Instance Constructors
new
CancellableFuture
(
promise:
Promise
[
A
]
)
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
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
cancel
()
:
Boolean
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
equals
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
classOf[java.lang.Throwable]
)
def
flatMap
[
B
]
(
f: (
A
) ⇒
CancellableFuture
[
B
]
)
(
implicit
executor:
ExecutionContext
)
:
CancellableFuture
[
B
]
def
flatten
[
B
]
(
implicit
executor:
ExecutionContext
,
evidence:
<:<
[
A
,
CancellableFuture
[
B
]]
)
:
CancellableFuture
[
B
]
val
future
:
Future
[
A
]
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
def
hashCode
()
:
Int
Definition Classes
AnyRef → Any
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
def
map
[
B
]
(
f: (
A
) ⇒
B
)
(
implicit
executor:
ExecutionContext
)
:
CancellableFuture
[
B
]
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
def
onCancelled
(
body: ⇒
Unit
)
(
implicit
executor:
ExecutionContext
)
:
Unit
def
onComplete
[
B
]
(
f: (
Try
[
A
]) ⇒
B
)
(
implicit
executor:
ExecutionContext
)
:
Unit
def
onFailure
[
U
]
(
pf:
PartialFunction
[
Throwable
,
U
]
)
(
implicit
executor:
ExecutionContext
)
:
Unit
def
onSuccess
[
U
]
(
pf:
PartialFunction
[
A
,
U
]
)
(
implicit
executor:
ExecutionContext
)
:
Unit
def
ready
(
atMost:
Duration
)
(
implicit
permit:
CanAwait
)
:
CancellableFuture
.this.type
Definition Classes
CancellableFuture
→ Awaitable
Annotations
@throws
(
classOf[InterruptedException]
)
@throws
(
classOf[TimeoutException]
)
def
recover
[
B >:
A
]
(
pf:
PartialFunction
[
Throwable
,
B
]
)
(
implicit
executor:
ExecutionContext
)
:
CancellableFuture
[
B
]
def
recoverWith
[
U >:
A
]
(
pf:
PartialFunction
[
Throwable
,
CancellableFuture
[
U
]]
)
(
implicit
executor:
ExecutionContext
)
:
CancellableFuture
[
U
]
def
result
(
atMost:
Duration
)
(
implicit
permit:
CanAwait
)
:
A
Definition Classes
CancellableFuture
→ Awaitable
Annotations
@throws
(
classOf[Exception]
)
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
def
toString
()
:
String
Definition Classes
AnyRef → Any
final
def
wait
(
arg0:
Long
,
arg1:
Int
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
()
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
def
withTimeout
(
timeout:
FiniteDuration
)
:
CancellableFuture
[
A
]
def
zip
[
B
]
(
other:
CancellableFuture
[
B
]
)
(
implicit
executor:
ExecutionContext
)
:
CancellableFuture
[(
A
,
B
)]
Inherited from
Awaitable
[
A
]
Inherited from
AnyRef
Inherited from
Any
Ungrouped