Interface Coroutine

All Superinterfaces:
Serializable

public interface Coroutine extends Serializable
Interface to identify a coroutine.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    run(Continuation continuation)
    Entry point of coroutine.
  • Method Details

    • run

      void run(Continuation continuation) throws Exception
      Entry point of coroutine.
      Parameters:
      continuation - used to suspend/yield the coroutine
      Throws:
      Exception - if a problem occurs