Chain.DefaultImpls| Constructor and Description | 
|---|
| SimpleChain(Function1<? super kotlin.coroutines.experimental.Continuation<? super R>,? extends java.lang.Object> gen)A simple chain of independent tokens | 
| Modifier and Type | Method and Description | 
|---|---|
| Chain<R> | fork()Create a copy of current chain state. Consuming resulting chain does not affect initial chain | 
| R | getValue()Last value of the chain | 
| java.lang.Object | next(java.lang.Object p)Generate next value, changin state if needed | 
public SimpleChain(Function1<? super kotlin.coroutines.experimental.Continuation<? super R>,? extends java.lang.Object> gen)
A simple chain of independent tokens
public R getValue()
Last value of the chain
public java.lang.Object next(java.lang.Object p)
Generate next value, changin state if needed
public Chain<R> fork()
Create a copy of current chain state. Consuming resulting chain does not affect initial chain