zio
CancelableFuture
Related Doc:
package zio
abstract
class
CancelableFuture
[
+A
]
extends
Future
[
A
] with
FutureTransformCompat
[
A
]
Linear Supertypes
FutureTransformCompat
[
A
],
Future
[
A
],
Awaitable
[
A
],
AnyRef
,
Any
Ordering
Alphabetic
By Inheritance
Inherited
CancelableFuture
FutureTransformCompat
Future
Awaitable
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Instance Constructors
new
CancelableFuture
(
future:
Future
[
A
]
)
Abstract Value Members
abstract
def
cancel
()
:
Future
[
Exit
[
Throwable
,
A
]]
Immediately cancels the operation and returns a
scala.concurrent.Future
containing the result
Concrete 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
andThen
[
U
]
(
pf:
PartialFunction
[
Try
[
A
],
U
]
)
(
implicit
executor:
ExecutionContext
)
:
Future
[
A
]
Definition Classes
Future
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
def
collect
[
S
]
(
pf:
PartialFunction
[
A
,
S
]
)
(
implicit
executor:
ExecutionContext
)
:
Future
[
S
]
Definition Classes
Future
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
equals
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
def
failed
:
Future
[
Throwable
]
Definition Classes
Future
def
fallbackTo
[
U >:
A
]
(
that:
Future
[
U
]
)
:
Future
[
U
]
Definition Classes
Future
def
filter
(
p: (
A
) ⇒
Boolean
)
(
implicit
executor:
ExecutionContext
)
:
Future
[
A
]
Definition Classes
Future
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
classOf[java.lang.Throwable]
)
def
flatMap
[
S
]
(
f: (
A
) ⇒
Future
[
S
]
)
(
implicit
executor:
ExecutionContext
)
:
Future
[
S
]
Definition Classes
Future
def
foreach
[
U
]
(
f: (
A
) ⇒
U
)
(
implicit
executor:
ExecutionContext
)
:
Unit
Definition Classes
Future
val
future
:
Future
[
A
]
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
def
hashCode
()
:
Int
Definition Classes
AnyRef → Any
final
def
isCompleted
:
Boolean
Definition Classes
CancelableFuture
→ Future
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
def
map
[
S
]
(
f: (
A
) ⇒
S
)
(
implicit
executor:
ExecutionContext
)
:
Future
[
S
]
Definition Classes
Future
def
mapTo
[
S
]
(
implicit
tag:
ClassTag
[
S
]
)
:
Future
[
S
]
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
final
def
onComplete
[
U
]
(
f: (
Try
[
A
]) ⇒
U
)
(
implicit
executor:
ExecutionContext
)
:
Unit
Definition Classes
CancelableFuture
→ Future
def
onFailure
[
U
]
(
pf:
PartialFunction
[
Throwable
,
U
]
)
(
implicit
executor:
ExecutionContext
)
:
Unit
Definition Classes
Future
def
onSuccess
[
U
]
(
pf:
PartialFunction
[
A
,
U
]
)
(
implicit
executor:
ExecutionContext
)
:
Unit
Definition Classes
Future
final
def
ready
(
atMost:
Duration
)
(
implicit
permit:
CanAwait
)
:
CancelableFuture
.this.type
Definition Classes
CancelableFuture
→ Awaitable
def
recover
[
U >:
A
]
(
pf:
PartialFunction
[
Throwable
,
U
]
)
(
implicit
executor:
ExecutionContext
)
:
Future
[
U
]
Definition Classes
Future
def
recoverWith
[
U >:
A
]
(
pf:
PartialFunction
[
Throwable
,
Future
[
U
]]
)
(
implicit
executor:
ExecutionContext
)
:
Future
[
U
]
Definition Classes
Future
final
def
result
(
atMost:
Duration
)
(
implicit
permit:
CanAwait
)
:
A
Definition Classes
CancelableFuture
→ Awaitable
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
def
toString
()
:
String
Definition Classes
AnyRef → Any
def
transform
[
S
]
(
s: (
A
) ⇒
S
,
f: (
Throwable
) ⇒
Throwable
)
(
implicit
executor:
ExecutionContext
)
:
Future
[
S
]
Definition Classes
Future
final
def
value
:
Option
[
Try
[
A
]]
Definition Classes
CancelableFuture
→ 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
(
...
)
final
def
withFilter
(
p: (
A
) ⇒
Boolean
)
(
implicit
executor:
ExecutionContext
)
:
Future
[
A
]
Definition Classes
Future
def
zip
[
U
]
(
that:
Future
[
U
]
)
:
Future
[(
A
,
U
)]
Definition Classes
Future
Inherited from
FutureTransformCompat
[
A
]
Inherited from
Future
[
A
]
Inherited from
Awaitable
[
A
]
Inherited from
AnyRef
Inherited from
Any
Ungrouped