DispatchWorkItem

Overview

Location

  • Reference:
    • Swift.fx  Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-watchOS, Island-watchOS Simulator
    • libSwift.fx  Toffee
  • Namespace: Swift
  • Platforms: Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-watchOS, Island-watchOS Simulator, Toffee

Instance Methods


constructor Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-watchOS, Island-watchOS Simulator

 

constructor withGroup(group: not nullable DispatchGroup) qos(qos: not nullable DispatchQoS) flags(flags: not nullable DispatchWorkItemFlags) execute(block: not nullable Action)

 

DispatchWorkItem withGroup(DispatchGroup! group) qos(DispatchQoS! qos) flags(DispatchWorkItemFlags! flags) execute(Action! block)

 

init(withGroup group: DispatchGroup, qos: DispatchQoS, flags: DispatchWorkItemFlags, execute block: Action)

Parameters:

  • group:
  • qos:
  • flags:
  • block:

cancel  virtual

 

method cancel

 

void cancel()

 

func cancel()

initWithGroup Toffee

 

func initWithGroup(group: DispatchGroup, qos: DispatchQoS, flags: DispatchWorkItemFlags, execute block: () -> ()) -> instancetype

Parameters:

  • group:
  • qos:
  • flags:
  • block:

perform  virtual

 

method perform

 

void perform()

 

func perform()