cats-effect
cats-effect
cats
cats.effect
cats.effect.instances
cats.effect.syntax
cats.effect.unsafe
cats-effect
/
cats.effect
/
IO
IO
sealed abstract
class
IO
[+A] extends
IOPlatform
[
A
]
Companion
object
Graph
Super types
class
IOPlatform
[
A
]
class
Object
trait
Matchable
class
Any
Value members
Value members
Methods
def
<*
[B](that:
IO
[
B
]):
IO
[
A
]
def
*>
[B](that:
IO
[
B
]):
IO
[
B
]
def
>>
[B](that: =>
IO
[
B
]):
IO
[
B
]
def
as
[B](b:
B
):
IO
[
B
]
def
attempt
:
IO
[
Either
[
Throwable
,
A
]]
def
bothOutcome
[B](that:
IO
[
B
]):
IO
[(
OutcomeIO
[
A
],
OutcomeIO
[
B
])]
def
both
[B](that:
IO
[
B
]):
IO
[(
A
,
B
)]
def
bracket
[B](use:
A
=>
IO
[
B
])(release:
A
=>
IO
[
Unit
]):
IO
[
B
]
def
bracketCase
[B](use:
A
=>
IO
[
B
])(release: (
A
,
OutcomeIO
[
B
]) =>
IO
[
Unit
]):
IO
[
B
]
def
evalOn
(ec:
ExecutionContext
):
IO
[
A
]
def
flatMap
[B](f:
A
=>
IO
[
B
]):
IO
[
B
]
def
flatten
[B](ev:
A
<:<
IO
[
B
]):
IO
[
B
]
def
guarantee
(finalizer:
IO
[
Unit
]):
IO
[
A
]
def
guaranteeCase
(finalizer:
OutcomeIO
[
A
] =>
IO
[
Unit
]):
IO
[
A
]
def
handleErrorWith
[B >:
A
](f:
Throwable
=>
IO
[
B
]):
IO
[
B
]
def
map
[B](f:
A
=>
B
):
IO
[
B
]
def
onCancel
(fin:
IO
[
Unit
]):
IO
[
A
]
def
onCase
(pf:
PartialFunction
[
OutcomeIO
[
A
],
IO
[
Unit
]]):
IO
[
A
]
def
onError
(f:
Throwable
=>
IO
[
Unit
]):
IO
[
A
]
def
race
[B](that:
IO
[
B
]):
IO
[
Either
[
A
,
B
]]
def
raceOutcome
[B](that:
IO
[
B
]):
IO
[
Either
[
OutcomeIO
[
A
],
OutcomeIO
[
B
]]]
def
racePair
[B](that:
IO
[
B
]):
IO
[
Either
[(
OutcomeIO
[
A
],
FiberIO
[
B
]), (
FiberIO
[
A
],
OutcomeIO
[
B
])]]
def
redeem
[B](recover:
Throwable
=>
B
, map:
A
=>
B
):
IO
[
B
]
def
redeemWith
[B](recover:
Throwable
=>
IO
[
B
], bind:
A
=>
IO
[
B
]):
IO
[
B
]
def
delayBy
(duration:
FiniteDuration
):
IO
[
A
]
def
timeout
[A2 >:
A
](duration:
FiniteDuration
):
IO
[
A2
]
def
timeoutTo
[A2 >:
A
](duration:
FiniteDuration
, fallback:
IO
[
A2
]):
IO
[
A2
]
def
product
[B](that:
IO
[
B
]):
IO
[(
A
,
B
)]
def
productL
[B](that:
IO
[
B
]):
IO
[
A
]
def
productR
[B](that:
IO
[
B
]):
IO
[
B
]
def
start
:
IO
[
FiberIO
[
A
]]
def
background
:
ResourceIO
[
IO
[
OutcomeIO
[
A
]]]
def
memoize
:
IO
[
IO
[
A
]]
def
uncancelable
:
IO
[
A
]
def
void
:
IO
[
Unit
]
override
def
toString
:
String
Definition Classes
Any
def
unsafeRunAsync
(cb:
Either
[
Throwable
,
A
] =>
Unit
)(runtime:
IORuntime
):
Unit
def
unsafeRunAsyncOutcome
(cb:
Outcome
[
Id
,
Throwable
,
A
] =>
Unit
)(runtime:
IORuntime
):
Unit
def
unsafeRunAndForget
(runtime:
IORuntime
):
Unit
def
unsafeToFuture
(runtime:
IORuntime
):
Future
[
A
]
def
foreverM
:
IO
[
Nothing
]
def
whileM
[G <: ([_$16] =>>
Any
), B >:
A
](p:
IO
[
Boolean
])(evidence$1:
Alternative
[
G
]):
IO
[
G
[
B
]]
def
whileM_
(p:
IO
[
Boolean
]):
IO
[
Unit
]
def
untilM
[G <: ([_$17] =>>
Any
), B >:
A
](cond: =>
IO
[
Boolean
])(evidence$2:
Alternative
[
G
]):
IO
[
G
[
B
]]
def
untilM_
(cond: =>
IO
[
Boolean
]):
IO
[
Unit
]
def
iterateWhile
(p:
A
=>
Boolean
):
IO
[
A
]
def
iterateUntil
(p:
A
=>
Boolean
):
IO
[
A
]
Inherited methods
final
def
unsafeRunTimed
(limit:
FiniteDuration
)(runtime:
IORuntime
):
Option
[
A
]
Inhertied from
IOPlatform
final
def
unsafeToCompletableFuture
(runtime:
IORuntime
):
CompletableFuture
[
A
]
Inhertied from
IOPlatform
final
def
unsafeRunSync
(runtime:
IORuntime
):
A
Inhertied from
IOPlatform