Runnable

public protocol Runnable : AnyObject

Protocol that should be implemented by any class whose instances are intended to be executed by a thread.

  • Method that will be called when this Runnable is executed.

    Declaration

    Swift

    func run()