Interface Coroutine

  • All Superinterfaces:
    java.io.Serializable

    public interface Coroutine
    extends java.io.Serializable
    Interface to identify a 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