Interface RunnableX

All Superinterfaces:
Runnable, Serializable
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface RunnableX extends Runnable, Serializable
可序列化的Runnable
Since:
Java 17+
Author:
Kimi Liu
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    static RunnableX
    multi(RunnableX... serRunnableArray)
    multi
    default void
    run()
    When an object implementing interface Runnable is used to create a thread, starting the thread causes the object's run method to be called in that separately executing thread.
    void
    When an object implementing interface Runnable is used to create a thread, starting the thread causes the object's run method to be called in that separately executing thread.
  • Method Details

    • multi

      static RunnableX multi(RunnableX... serRunnableArray)
      multi
      Parameters:
      serRunnableArray - lambda
      Returns:
      lambda
    • running

      void running() throws Throwable
      When an object implementing interface Runnable is used to create a thread, starting the thread causes the object's run method to be called in that separately executing thread.

      The general contract of the method run is that it may take any action whatsoever.

      Throws:
      Exception - wrapped checked exception
      Throwable
      See Also:
    • run

      default void run()
      When an object implementing interface Runnable is used to create a thread, starting the thread causes the object's run method to be called in that separately executing thread.

      The general contract of the method run is that it may take any action whatsoever.

      Specified by:
      run in interface Runnable
      See Also: