Package com.offbynull.coroutines.user
Interface Coroutine
-
- All Superinterfaces:
java.io.Serializable
public interface Coroutine extends java.io.SerializableInterface to identify a coroutine.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidrun(Continuation continuation)Entry point of coroutine.
-
-
-
Method Detail
-
run
void run(Continuation continuation) throws java.lang.Exception
Entry point of coroutine.- Parameters:
continuation- used to suspend/yield the coroutine- Throws:
java.lang.Exception- if a problem occurs
-
-