UIAction

public protocol UIAction : Action

Actions that are performed in the main session and on the main dispatch queue should conform to this

  • queue Extension method

    By default the dispatch queue that all actions are called on is main. They will be called synchronously if the caller is already on the same queue, and asynchronously only if the caller is not already on the same queue.

    See

    ActionSession.callerQueue because that determines which queue the action can be performed from, and the session will prevent calls from other queues. This does not have to be the same as the Action’s queue.

    Declaration

    Swift

    static var queue: DispatchQueue { get }
  • defaultSession Extension method

    Declaration

    Swift

    static var defaultSession: ActionSession? { get }