DispatchQueue

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
  • Ancestry: DispatchObject | DispatchQueue

 

constructor

 

constructor withLabel(label: not nullable String) target(target: nullable DispatchQueue)

 

DispatchQueue withLabel(String! label) target(DispatchQueue? target)

 

init(withLabel label: String, target: DispatchQueue?)

 

Sub New withLabel(label As String) target(target As DispatchQueue?)

Parameters:

  • label:
  • target:

async execute(not nullable Action)  virtual

 

method async execute(work: not nullable Action)

 

void async execute(Action! work)

 

func async(execute work: () -> ())

 

Sub async execute(work As Action)

Parameters:

  • work:

async group(nullable DispatchGroup) execute(not nullable Action)  virtual

 

method async group(group: nullable DispatchGroup) execute(work: not nullable Action)

 

void async group(DispatchGroup? group) execute(Action! work)

 

func async(group: DispatchGroup?, execute work: () -> ())

 

Sub async group(group As DispatchGroup?) execute(work As Action)

Parameters:

  • group:
  • work:

asyncAfter deadline(not nullable DispatchTime) execute(not nullable Action)  virtual

 

method asyncAfter deadline(deadline: not nullable DispatchTime) execute(work: not nullable Action)

 

void asyncAfter deadline(DispatchTime! deadline) execute(Action! work)

 

func asyncAfter(deadline: DispatchTime, execute work: () -> ())

 

Sub asyncAfter deadline(deadline As DispatchTime) execute(work As Action)

Parameters:

  • deadline:
  • work:

asyncAfter wallDeadline(not nullable DispatchWallTime) execute(not nullable Action)  virtual

 

method asyncAfter wallDeadline(wallDeadline: not nullable DispatchWallTime) execute(work: not nullable Action)

 

void asyncAfter wallDeadline(DispatchWallTime! wallDeadline) execute(Action! work)

 

func asyncAfter(wallDeadline: DispatchWallTime, execute work: () -> ())

 

Sub asyncAfter wallDeadline(wallDeadline As DispatchWallTime) execute(work As Action)

Parameters:

  • wallDeadline:
  • work:

concurrentPerform  virtual

 

method concurrentPerform iterations(iterations: not nullable Int) execute(work: not nullable Action<not nullable UInt>)

 

void concurrentPerform iterations(Int! iterations) execute(Action<not nullable UInt>! work)

 

func concurrentPerform(iterations: Int, execute work: (UInt) -> ())

 

Sub concurrentPerform iterations(iterations As Int) execute(work As Action (Of UInt))

Parameters:

  • iterations:
  • work:

global  virtual

 

class method global qos(qos: not nullable QoSClass): not nullable DispatchQueue

 

static DispatchQueue! global qos(QoSClass! qos)

 

static func global(qos: QoSClass) -> DispatchQueue

 

Shared Function global qos(qos As QoSClass) As DispatchQueue

Parameters:

  • qos:

initialize Toffee

 

static func initialize(initialize )

Parameters:

  • :

label  virtual

 

property label: not nullable String read;

 

String! label { get; }

 

var label: String { get{} }

 

ReadOnly Property label() As String

main  virtual

 

class property main: not nullable DispatchQueue read write;

 

class DispatchQueue! main { get; set; }

 

static var main: DispatchQueue { get{} set{} }

 

Shared Property main() As DispatchQueue

queue  virtual

 

property queue: not nullable IOS_dispatch_queue read;

 

IOS_dispatch_queue! queue { get; }

 

// Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-watchOS, Island-watchOS Simulator
var queue: IOS_dispatch_queue { get{} }
// Toffee
var queue: dispatch_queue_t { get{} }

 

ReadOnly Property queue() As IOS_dispatch_queue

sync  virtual

 

method sync execute(work: not nullable Action)

 

void sync execute(Action! work)

 

func sync(execute work: () -> ())

 

Sub sync execute(work As Action)

Parameters:

  • work:

sync<T>  virtual Toffee

 

func sync<T>(execute work: (NSError) -> T!, error $error: NSError) -> T!

Parameters:

  • work:
  • $error:

 

label  virtual

 

property label: not nullable String read;

 

String! label { get; }

 

var label: String { get{} }

 

ReadOnly Property label() As String

queue  virtual

 

property queue: not nullable IOS_dispatch_queue read;

 

IOS_dispatch_queue! queue { get; }

 

// Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-watchOS, Island-watchOS Simulator
var queue: IOS_dispatch_queue { get{} }
// Toffee
var queue: dispatch_queue_t { get{} }

 

ReadOnly Property queue() As IOS_dispatch_queue

main  virtual

 

class property main: not nullable DispatchQueue read write;

 

class DispatchQueue! main { get; set; }

 

static var main: DispatchQueue { get{} set{} }

 

Shared Property main() As DispatchQueue

 

global  virtual

 

class method global qos(qos: not nullable QoSClass): not nullable DispatchQueue

 

static DispatchQueue! global qos(QoSClass! qos)

 

static func global(qos: QoSClass) -> DispatchQueue

 

Shared Function global qos(qos As QoSClass) As DispatchQueue

Parameters:

  • qos:

initialize Toffee

 

static func initialize(initialize )

Parameters:

  • :

 

constructor

 

constructor withLabel(label: not nullable String) target(target: nullable DispatchQueue)

 

DispatchQueue withLabel(String! label) target(DispatchQueue? target)

 

init(withLabel label: String, target: DispatchQueue?)

 

Sub New withLabel(label As String) target(target As DispatchQueue?)

Parameters:

  • label:
  • target:

async execute(not nullable Action)  virtual

 

method async execute(work: not nullable Action)

 

void async execute(Action! work)

 

func async(execute work: () -> ())

 

Sub async execute(work As Action)

Parameters:

  • work:

async group(nullable DispatchGroup) execute(not nullable Action)  virtual

 

method async group(group: nullable DispatchGroup) execute(work: not nullable Action)

 

void async group(DispatchGroup? group) execute(Action! work)

 

func async(group: DispatchGroup?, execute work: () -> ())

 

Sub async group(group As DispatchGroup?) execute(work As Action)

Parameters:

  • group:
  • work:

asyncAfter deadline(not nullable DispatchTime) execute(not nullable Action)  virtual

 

method asyncAfter deadline(deadline: not nullable DispatchTime) execute(work: not nullable Action)

 

void asyncAfter deadline(DispatchTime! deadline) execute(Action! work)

 

func asyncAfter(deadline: DispatchTime, execute work: () -> ())

 

Sub asyncAfter deadline(deadline As DispatchTime) execute(work As Action)

Parameters:

  • deadline:
  • work:

asyncAfter wallDeadline(not nullable DispatchWallTime) execute(not nullable Action)  virtual

 

method asyncAfter wallDeadline(wallDeadline: not nullable DispatchWallTime) execute(work: not nullable Action)

 

void asyncAfter wallDeadline(DispatchWallTime! wallDeadline) execute(Action! work)

 

func asyncAfter(wallDeadline: DispatchWallTime, execute work: () -> ())

 

Sub asyncAfter wallDeadline(wallDeadline As DispatchWallTime) execute(work As Action)

Parameters:

  • wallDeadline:
  • work:

concurrentPerform  virtual

 

method concurrentPerform iterations(iterations: not nullable Int) execute(work: not nullable Action<not nullable UInt>)

 

void concurrentPerform iterations(Int! iterations) execute(Action<not nullable UInt>! work)

 

func concurrentPerform(iterations: Int, execute work: (UInt) -> ())

 

Sub concurrentPerform iterations(iterations As Int) execute(work As Action (Of UInt))

Parameters:

  • iterations:
  • work:

sync  virtual

 

method sync execute(work: not nullable Action)

 

void sync execute(Action! work)

 

func sync(execute work: () -> ())

 

Sub sync execute(work As Action)

Parameters:

  • work:

sync<T>  virtual Toffee

 

func sync<T>(execute work: (NSError) -> T!, error $error: NSError) -> T!

Parameters:

  • work:
  • $error: