sttp
.
monad
FutureMonad
Related Doc:
package monad
class
FutureMonad
extends
MonadAsyncError
[
Future
]
Linear Supertypes
MonadAsyncError
[
Future
],
MonadError
[
Future
],
AnyRef
,
Any
Ordering
Alphabetic
By Inheritance
Inherited
FutureMonad
MonadAsyncError
MonadError
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Instance Constructors
new
FutureMonad
()
(
implicit
ec:
ExecutionContext
)
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
async
[
T
]
(
register: ((
Either
[
Throwable
,
T
]) ⇒
Unit
) ⇒
Canceler
)
:
Future
[
T
]
Definition Classes
FutureMonad
→
MonadAsyncError
def
blocking
[
T
]
(
t: ⇒
T
)
:
Future
[
T
]
Definition Classes
FutureMonad
→
MonadError
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@HotSpotIntrinsicCandidate
()
@throws
(
...
)
def
ensure
[
T
]
(
f:
Future
[
T
]
,
e: ⇒
Future
[
Unit
]
)
:
Future
[
T
]
Definition Classes
FutureMonad
→
MonadError
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
equals
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
def
error
[
T
]
(
t:
Throwable
)
:
Future
[
T
]
Definition Classes
FutureMonad
→
MonadError
def
eval
[
T
]
(
t: ⇒
T
)
:
Future
[
T
]
Definition Classes
FutureMonad
→
MonadError
def
flatMap
[
T
,
T2
]
(
fa:
Future
[
T
]
)
(
f: (
T
) ⇒
Future
[
T2
]
)
:
Future
[
T2
]
Definition Classes
FutureMonad
→
MonadError
def
flatTap
[
T
,
U
]
(
fa:
Future
[
T
]
)
(
f: (
T
) ⇒
Future
[
U
]
)
:
Future
[
T
]
Definition Classes
MonadError
def
flatten
[
T
]
(
ffa:
Future
[
Future
[
T
]]
)
:
Future
[
T
]
Definition Classes
MonadError
def
fromTry
[
T
]
(
t:
Try
[
T
]
)
:
Future
[
T
]
Definition Classes
FutureMonad
→
MonadError
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
Annotations
@HotSpotIntrinsicCandidate
()
def
handleError
[
T
]
(
rt: ⇒
Future
[
T
]
)
(
h:
PartialFunction
[
Throwable
,
Future
[
T
]]
)
:
Future
[
T
]
Definition Classes
MonadError
def
handleWrappedError
[
T
]
(
rt:
Future
[
T
]
)
(
h:
PartialFunction
[
Throwable
,
Future
[
T
]]
)
:
Future
[
T
]
Attributes
protected
Definition Classes
FutureMonad
→
MonadError
def
hashCode
()
:
Int
Definition Classes
AnyRef → Any
Annotations
@HotSpotIntrinsicCandidate
()
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
def
map
[
T
,
T2
]
(
fa:
Future
[
T
]
)
(
f: (
T
) ⇒
T2
)
:
Future
[
T2
]
Definition Classes
FutureMonad
→
MonadError
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
Annotations
@HotSpotIntrinsicCandidate
()
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
Annotations
@HotSpotIntrinsicCandidate
()
def
suspend
[
T
]
(
t: ⇒
Future
[
T
]
)
:
Future
[
T
]
Definition Classes
FutureMonad
→
MonadError
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
def
toString
()
:
String
Definition Classes
AnyRef → Any
def
unit
[
T
]
(
t:
T
)
:
Future
[
T
]
Definition Classes
FutureMonad
→
MonadError
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
(
...
)
Deprecated Value Members
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@Deprecated
@deprecated
@throws
(
classOf[java.lang.Throwable]
)
Deprecated
(Since version )
see corresponding Javadoc for more information.
Inherited from
MonadAsyncError
[
Future
]
Inherited from
MonadError
[
Future
]
Inherited from
AnyRef
Inherited from
Any
Ungrouped