AsyncOperation

open class AsyncOperation : AsyncOperationBase

Async operation.

  • Operation priority.

    Declaration

    Swift

    open var priority: AsyncOperationPriority { get }
  • Operation priority.

    See more

    Declaration

    Swift

    public enum AsyncOperationPriority
  • Sets the operation title.

    Declaration

    Swift

    open func setMessage(_ text: String)
  • Sets the operation icon.

    Declaration

    Swift

    open func setIcon(_ icon: NSImage)
  • Makes the operation indeterminate (no progress available).

    Declaration

    Swift

    open func setIndeterminate()
  • Sets the operation progress.

    Declaration

    Swift

    open func setProgress(_ progress: Double)
  • Sets up an initial operation status.

    Declaration

    Swift

    open func setup()
  • Operation implementation.

    Declaration

    Swift

    open func run() throws
  • Sets the operation progress (processed/total).

    Declaration

    Swift

    public func setProgress(processed: Int, from total: Int)
  • Sets the operation progress (processed/total).

    Declaration

    Swift

    public func setProgress(processed: Int, from total: Double)