Interface YieldRunnable

All Superinterfaces:
Runnable

public interface YieldRunnable extends Runnable
A runnable that can be yielded. If yield() is invoked, Runnable.run() will be called on the next tick again. Implementations need to save their state correctly.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Runs the Runnable.run() method again on the next tick.

    Methods inherited from interface java.lang.Runnable

    run
  • Method Details

    • yield

      default void yield()
      Runs the Runnable.run() method again on the next tick.