DispatchQueue

Overview

Location

  • Reference:
    • Swift.fx  Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-UIKit for Mac-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-UIKit for Mac-x86_64, 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?)

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

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

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

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

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<UInt!>! work)

 

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

Parameters:

  • iterations:
  • work:

global  virtual

 

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

 

static DispatchQueue! global qos(DispatchQoS.QoSClass! qos)

 

static func global(qos: DispatchQoS.QoSClass) -> DispatchQueue

Parameters:

  • qos:

label  virtual

 

property label: not nullable String read;

 

String! label { get; }

 

var label: String { get{} }

main  virtual

 

class property main: not nullable DispatchQueue read write;

 

class DispatchQueue! main { get; set; }

 

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

queue  virtual

 

property queue: not nullable IOS_dispatch_queue read;

 

IOS_dispatch_queue! queue { get; }

 

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

sync  virtual

 

method sync execute(work: not nullable Action)

 

void sync execute(Action! work)

 

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

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{} }

queue  virtual

 

property queue: not nullable IOS_dispatch_queue read;

 

IOS_dispatch_queue! queue { get; }

 

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

main  virtual

 

class property main: not nullable DispatchQueue read write;

 

class DispatchQueue! main { get; set; }

 

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

 

global  virtual

 

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

 

static DispatchQueue! global qos(DispatchQoS.QoSClass! qos)

 

static func global(qos: DispatchQoS.QoSClass) -> DispatchQueue

Parameters:

  • qos:

 

constructor

 

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

 

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

 

init(withLabel label: String, target: 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: () -> ())

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

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

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

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<UInt!>! work)

 

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

Parameters:

  • iterations:
  • work:

sync  virtual

 

method sync execute(work: not nullable Action)

 

void sync execute(Action! work)

 

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

Parameters:

  • work:

sync<T>  virtual Toffee

 

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

Parameters:

  • work:
  • $error: