com
.
qifun
.
statelessFuture
.
util
.
Promise
AnyValPromise
final
class
AnyValPromise
[
AwaitResult
]
extends
AnyVal
with
Promise
[
AwaitResult
]
Linear Supertypes
Promise
[
AwaitResult
],
Stateful
[
AwaitResult
,
Unit
],
Awaitable
[
AwaitResult
,
Unit
],
AnyVal
,
Any
Type Hierarchy
Learn more about scaladoc diagrams
AnyValPromise[AwaitResult]
AnyVal
Promise[AwaitResult]
Ordering
Alphabetic
By inheritance
Inherited
AnyValPromise
Promise
Stateful
Awaitable
AnyVal
Any
Hide All
Show all
Learn more about member selection
Visibility
Public
All
Value Members
final
def
!=
(
arg0:
Any
)
:
Boolean
Definition Classes
Any
final
def
##
()
:
Int
Definition Classes
Any
final
def
==
(
arg0:
Any
)
:
Boolean
Definition Classes
Any
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
final
def
await
:
AwaitResult
Definition Classes
Awaitable
Annotations
@compileTimeOnly
(
...
)
final
def
complete
(
value:
Try
[
AwaitResult
]
)
:
TailRec
[
Unit
]
Definition Classes
Promise
final
def
completeWith
(
other:
Future
[
AwaitResult
]
)
:
Unit
[use case]
[use case]
Definition Classes
Promise
Full Signature
final
def
completeWith
[
OriginalAwaitResult
]
(
other:
Future
[
OriginalAwaitResult
]
)
(
implicit
view: (
OriginalAwaitResult
) ⇒
AwaitResult
)
:
Unit
final
def
flatMap
[
ConvertedAwaitResult
]
(
converter: (
AwaitResult
) ⇒
Awaitable
[
ConvertedAwaitResult
,
Unit
]
)
:
Stateless
[
ConvertedAwaitResult
,
Unit
]
Definition Classes
Awaitable
final
def
foreach
(
handler: (
AwaitResult
) ⇒
Unit
)
(
implicit
catcher:
Catcher
[
Unit
]
)
:
Unit
Definition Classes
Awaitable
def
getClass
()
:
Class
[_ <:
AnyVal
]
Definition Classes
AnyVal → Any
def
isCompleted
:
Boolean
Definition Classes
Stateful
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
final
def
map
[
ConvertedAwaitResult
]
(
converter: (
AwaitResult
) ⇒
ConvertedAwaitResult
)
:
Stateless
[
ConvertedAwaitResult
,
Unit
]
Definition Classes
Awaitable
final
def
onComplete
(
body: (
AwaitResult
) ⇒
TailRec
[
Unit
]
)
(
implicit
catcher:
Catcher
[
TailRec
[
Unit
]]
)
:
TailRec
[
Unit
]
Definition Classes
Promise
→ Awaitable
val
state
:
AtomicReference
[
Either
[
Queue
[((
AwaitResult
) ⇒
TailRec
[
Unit
],
Catcher
[
TailRec
[
Unit
]])],
Try
[
AwaitResult
]]]
Definition Classes
AnyValPromise
→
Promise
def
toString
()
:
String
Definition Classes
Any
final
def
tryComplete
(
value:
Try
[
AwaitResult
]
)
:
TailRec
[
Unit
]
Definition Classes
Promise
final
def
tryCompleteWith
(
other:
Future
[
AwaitResult
]
)
:
Unit
[use case]
[use case]
Definition Classes
Promise
Full Signature
final
def
tryCompleteWith
[
OriginalAwaitResult
]
(
other:
Future
[
OriginalAwaitResult
]
)
(
implicit
view: (
OriginalAwaitResult
) ⇒
AwaitResult
)
:
Unit
final
def
value
:
Option
[
Try
[
AwaitResult
]]
Definition Classes
Promise
→ Stateful
final
def
withFilter
(
condition: (
AwaitResult
) ⇒
Boolean
)
:
Stateless
[
AwaitResult
,
Unit
]
Definition Classes
Awaitable
Inherited from
Promise
[
AwaitResult
]
Inherited from
Stateful
[
AwaitResult
,
Unit
]
Inherited from
Awaitable
[
AwaitResult
,
Unit
]
Inherited from
AnyVal
Inherited from
Any
Ungrouped