toggle menu
Quiver Library
jvm
switch theme
search in API
Quiver Library
/
app.cash.quiver.continuations
/
OutcomeEffectScope
Outcome
Effect
Scope
@
JvmInline
value
class
OutcomeEffectScope
<
E
>
(
cont
:
EffectScope
<
Either
<
Failure
<
E
>
,
Absent
>
>
)
:
EffectScope
<
Either
<
Failure
<
E
>
,
Absent
>
>
(
source
)
Members
Constructors
Outcome
Effect
Scope
Link copied to clipboard
constructor
(
cont
:
EffectScope
<
Either
<
Failure
<
E
>
,
Absent
>
>
)
Functions
attempt
Link copied to clipboard
open
suspend
fun
<
E
,
A
>
attempt
(
f
:
suspend
EffectScope
<
E
>
.
(
)
->
A
)
:
suspend
EffectScope
<
E
>
.
(
)
->
A
bind
Link copied to clipboard
suspend
fun
<
B
>
Outcome
<
E
,
B
>
.
bind
(
)
:
B
open
suspend
fun
<
B
>
Either
<
Either
<
Failure
<
E
>
,
Absent
>
,
B
>
.
bind
(
)
:
B
open
suspend
fun
<
B
>
Validated
<
Either
<
Failure
<
E
>
,
Absent
>
,
B
>
.
bind
(
)
:
B
open
suspend
fun
<
B
>
EagerEffect
<
Either
<
Failure
<
E
>
,
Absent
>
,
B
>
.
bind
(
)
:
B
open
suspend
fun
<
B
>
Effect
<
Either
<
Failure
<
E
>
,
Absent
>
,
B
>
.
bind
(
)
:
B
open
suspend
fun
<
B
>
EagerEffect
<
Either
<
Failure
<
E
>
,
Absent
>
,
B
>
.
bind
(
)
:
B
open
suspend
fun
<
B
>
suspend
Raise
<
Either
<
Failure
<
E
>
,
Absent
>
>
.
(
)
->
B
.
bind
(
)
:
B
open
suspend
fun
<
B
>
Option
<
B
>
.
bind
(
shift
:
(
)
->
Either
<
Failure
<
E
>
,
Absent
>
)
:
B
open
suspend
fun
<
B
>
Result
<
B
>
.
bind
(
transform
:
(
Throwable
)
->
Either
<
Failure
<
E
>
,
Absent
>
)
:
B
catch
Link copied to clipboard
open
infix suspend
fun
<
E
,
A
>
suspend
EffectScope
<
E
>
.
(
)
->
A
.
catch
(
recover
:
suspend
EffectScope
<
Either
<
Failure
<
E
>
,
Absent
>
>
.
(
E
)
->
A
)
:
A
ensure
Link copied to clipboard
open
suspend
fun
ensure
(
condition
:
Boolean
,
shift
:
(
)
->
Either
<
Failure
<
E
>
,
Absent
>
)
recover
Link copied to clipboard
open
infix suspend
fun
<
E
,
A
>
suspend
EffectScope
<
E
>
.
(
)
->
A
.
recover
(
recover
:
suspend
EffectScope
<
Either
<
Failure
<
E
>
,
Absent
>
>
.
(
E
)
->
A
)
:
A
shift
Link copied to clipboard
open
suspend override
fun
<
B
>
shift
(
r
:
Either
<
Failure
<
E
>
,
Absent
>
)
:
B