public SelectBuilder<R>
Scope for select invocation.
Modifier and Type | Interface and Description |
---|---|
static class |
SelectBuilder.DefaultImpls
Scope for select invocation.
|
Modifier and Type | Method and Description |
---|---|
void |
invoke(SelectClause0 $receiver,
kotlin.jvm.functions.Function1<? super kotlin.coroutines.experimental.Continuation<? super R>,? extends java.lang.Object> block)
Registers clause in this select expression without additional parameters that does not select any value.
|
<Q> void |
invoke(SelectClause1<? extends Q> $receiver,
kotlin.jvm.functions.Function2<? super Q,? super kotlin.coroutines.experimental.Continuation<? super R>,? extends java.lang.Object> block)
Registers clause in this select expression without additional parameters that selects value of type Q.
|
<P,Q> void |
invoke(SelectClause2<? super P,? extends Q> $receiver,
P param,
kotlin.jvm.functions.Function2<? super Q,? super kotlin.coroutines.experimental.Continuation<? super R>,? extends java.lang.Object> block)
Registers clause in this select expression with additional parameter of type P that selects value of type Q.
|
<P,Q> void |
invoke(SelectClause2<? super P,? extends Q> $receiver,
kotlin.jvm.functions.Function2<? super Q,? super kotlin.coroutines.experimental.Continuation<? super R>,? extends java.lang.Object> block)
Registers clause in this select expression with additional parameter nullable parameter of type P
with the
null value for this parameter that selects value of type Q. |
void |
onTimeout(long timeMillis,
kotlin.jvm.functions.Function1<? super kotlin.coroutines.experimental.Continuation<? super R>,? extends java.lang.Object> block)
Clause that selects the given block after a specified timeout passes.
If timeout is negative or zero, block is selected immediately.
|
void invoke(SelectClause0 $receiver, kotlin.jvm.functions.Function1<? super kotlin.coroutines.experimental.Continuation<? super R>,? extends java.lang.Object> block)
Registers clause in this select expression without additional parameters that does not select any value.
<Q> void invoke(SelectClause1<? extends Q> $receiver, kotlin.jvm.functions.Function2<? super Q,? super kotlin.coroutines.experimental.Continuation<? super R>,? extends java.lang.Object> block)
Registers clause in this select expression without additional parameters that selects value of type Q.
<P,Q> void invoke(SelectClause2<? super P,? extends Q> $receiver, P param, kotlin.jvm.functions.Function2<? super Q,? super kotlin.coroutines.experimental.Continuation<? super R>,? extends java.lang.Object> block)
Registers clause in this select expression with additional parameter of type P that selects value of type Q.
<P,Q> void invoke(SelectClause2<? super P,? extends Q> $receiver, kotlin.jvm.functions.Function2<? super Q,? super kotlin.coroutines.experimental.Continuation<? super R>,? extends java.lang.Object> block)
Registers clause in this select expression with additional parameter nullable parameter of type P
with the null
value for this parameter that selects value of type Q.
void onTimeout(long timeMillis, kotlin.jvm.functions.Function1<? super kotlin.coroutines.experimental.Continuation<? super R>,? extends java.lang.Object> block)
Clause that selects the given block after a specified timeout passes. If timeout is negative or zero, block is selected immediately.
Note: This is an experimental api. It may be replaced with light-weight timer/timeout channels in the future.
timeMillis
- timeout time in milliseconds.