renetik-android
Toggle table of contents
release
Target filter
release
Switch theme
Search in API
Skip to content
renetik-android
renetik-android-core
/
renetik.android.core.lang.result
Package-level
declarations
Types
Functions
Properties
Types
CSCoroutines
Link copied to clipboard
object
CSCoroutines
CSResult
Link copied to clipboard
data
class
CSResult
<
Value
>
(
val
state
:
CSResult.State
,
val
value
:
Value
?
=
null
,
var
throwable
:
Throwable
?
=
null
,
val
message
:
String
?
=
null
,
val
code
:
Int
?
=
null
)
Properties
main
Scope
Link copied to clipboard
var
mainScope
:
CoroutineScope
Functions
canceled
Link copied to clipboard
fun
<
Value
>
CancellableContinuation
<
CSResult
<
Value
>
>
.
canceled
(
)
cancel
If
Not
Active
Link copied to clipboard
suspend
fun
Job
.
cancelIfNotActive
(
scope
:
CoroutineScope
,
onCancel
:
(
)
->
Unit
)
:
Job
create
Main
Scope
Link copied to clipboard
fun
createMainScope
(
)
:
CoroutineScope
create
Supervisor
Child
Link copied to clipboard
fun
CoroutineScope
.
createSupervisorChild
(
)
:
CoroutineScope
current
Dispatcher
Link copied to clipboard
suspend
fun
currentDispatcher
(
)
:
CoroutineDispatcher
?
dump
Job
Tree
Link copied to clipboard
fun
Job
.
dumpJobTree
(
)
failure
Link copied to clipboard
fun
<
Value
>
CancellableContinuation
<
CSResult
<
Value
>
>
.
failure
(
message
:
String
)
fun
<
Value
>
CancellableContinuation
<
CSResult
<
Value
>
>
.
failure
(
throwable
:
Throwable
)
fun
<
Value
>
CancellableContinuation
<
CSResult
<
Value
>
>
.
failure
(
throwable
:
Throwable
,
message
:
String
?
)
invoke
Link copied to clipboard
inline suspend operator
fun
<
T
>
CoroutineContext
.
invoke
(
crossinline
block
:
suspend
(
)
->
T
)
:
T
@
JvmName
(
name
=
"CoroutineContextNullInvoke"
)
inline suspend operator
fun
<
T
>
CoroutineContext
?
.
invoke
(
crossinline
block
:
suspend
(
)
->
T
)
:
T
named
Link copied to clipboard
fun
CoroutineContext
.
named
(
name
:
String
)
:
CoroutineContext
on
Cancel
Link copied to clipboard
fun
Job
.
onCancel
(
onCancel
:
(
)
->
Unit
)
:
Job
shut
Down
Link copied to clipboard
suspend
fun
CoroutineScope
.
shutDown
(
timeout
:
Duration
=
5.seconds
)
success
Link copied to clipboard
fun
CancellableContinuation
<
CSResult
<
Unit
>
>
.
success
(
)
fun
<
Value
>
CancellableContinuation
<
CSResult
<
Value
>
>
.
success
(
value
:
Value
)