DispatchWorkItem

Overview

Location

  • Reference:
    • Silver.fx  Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-watchOS, Island-watchOS Simulator
    • libSilver.fx  Toffee
  • Namespace: Swift
  • Platforms: Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-watchOS, Island-watchOS Simulator, Toffee

Instance Methods


constructor

 

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: () -> ())

 

Sub New withGroup(group As DispatchGroup) qos(qos As DispatchQoS) flags(flags As DispatchWorkItemFlags) execute(block As Action)

Parameters:

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

cancel  virtual Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-watchOS, Island-watchOS Simulator

 

method cancel

 

void cancel()

 

func cancel()

 

Sub cancel()

cancel cancel()  virtual Toffee

 

func cancel(cancel )

Parameters:

  • :

perform  virtual Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-watchOS, Island-watchOS Simulator

 

method perform

 

void perform()

 

func perform()

 

Sub perform()

perform perform()  virtual Toffee

 

func perform(perform )

Parameters:

  • :