DispatchQueue

Overview

Location

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

 

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

 

// Island-UIKit for Mac-x86_64
method concurrentPerform iterations(iterations: not nullable Int) execute(work: not nullable Action<not nullable UInt>)
// Island-iOS, Island-iOS Simulator-x86_64, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator-x86_64, Island-watchOS, Island-watchOS Simulator
method concurrentPerform iterations(iterations: not nullable Int) execute(work: not nullable Action<not nullable UInt>)

 

// Island-UIKit for Mac-x86_64
void concurrentPerform iterations(Int! iterations) execute(Action<UInt!>! work)
// Island-iOS, Island-iOS Simulator-x86_64, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator-x86_64, Island-watchOS, Island-watchOS Simulator
void concurrentPerform iterations(Int! iterations) execute(Action<UInt!>! work)

 

// Toffee-UIKit for Mac
func concurrentPerform(iterations: Int, execute work: (UInt) -> ())
// Toffee-iOS, Toffee-iOS Simulator, Toffee-Mac Catalyst, Toffee-macOS, Toffee-tvOS, Toffee-tvOS Simulator, Toffee-watchOS, Toffee-watchOS Simulator
func concurrentPerform(iterations: Int, execute work: (UInt) -> ())

 

// Island-UIKit for Mac-x86_64
Sub concurrentPerform iterations(iterations As Int) execute(work As Action (Of UInt))
// Island-iOS, Island-iOS Simulator-x86_64, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator-x86_64, Island-watchOS, Island-watchOS Simulator
Sub concurrentPerform iterations(iterations As Int) execute(work As Action (Of UInt))

Parameters:

  • iterations:
  • work:

global  virtual

 

// Island-UIKit for Mac-x86_64
class method global qos(qos: not nullable DispatchQoS.QoSClass): not nullable DispatchQueue
// Island-iOS, Island-iOS Simulator-x86_64, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator-x86_64, Island-watchOS, Island-watchOS Simulator
class method global qos(qos: not nullable QoSClass): not nullable DispatchQueue

 

// Island-UIKit for Mac-x86_64
static DispatchQueue! global qos(DispatchQoS.QoSClass! qos)
// Island-iOS, Island-iOS Simulator-x86_64, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator-x86_64, Island-watchOS, Island-watchOS Simulator
static DispatchQueue! global qos(QoSClass! qos)

 

// Toffee-UIKit for Mac
static func global(qos: DispatchQoS.QoSClass) -> DispatchQueue
// Toffee-iOS, Toffee-iOS Simulator, Toffee-Mac Catalyst, Toffee-macOS, Toffee-tvOS, Toffee-tvOS Simulator, Toffee-watchOS, Toffee-watchOS Simulator
static func global(qos: QoSClass) -> DispatchQueue

 

// Island-UIKit for Mac-x86_64
Shared Function global qos(qos As DispatchQoS.QoSClass) As DispatchQueue
// Island-iOS, Island-iOS Simulator-x86_64, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator-x86_64, Island-watchOS, Island-watchOS Simulator
Shared Function global qos(qos As QoSClass) As DispatchQueue

Parameters:

  • qos:

initialize Toffee

 

static func initialize()

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 Toffee-UIKit for Mac

 

property queue: not nullable dispatch_queue_t read;

 

dispatch_queue_t! queue { get; }

 

var queue: dispatch_queue_t { get{} }

 

dispatch_queue_t queue { __get; }

 

ReadOnly Property queue() As dispatch_queue_t

queue  virtual Island-iOS, Island-iOS Simulator-x86_64, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator-x86_64, Island-UIKit for Mac-x86_64, Island-watchOS, Island-watchOS Simulator, Toffee-iOS, Toffee-iOS Simulator, Toffee-Mac Catalyst, Toffee-macOS, Toffee-tvOS, Toffee-tvOS Simulator, Toffee-watchOS, Toffee-watchOS Simulator

 

property queue: not nullable IOS_dispatch_queue read;

 

IOS_dispatch_queue! queue { get; }

 

// Island-iOS, Island-iOS Simulator-x86_64, Island-Mac Catalyst, Island-macOS, 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-iOS, Toffee-iOS Simulator, Toffee-Mac Catalyst, Toffee-macOS, Toffee-tvOS, Toffee-tvOS Simulator, Toffee-watchOS, Toffee-watchOS Simulator
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 Toffee-UIKit for Mac

 

property queue: not nullable dispatch_queue_t read;

 

dispatch_queue_t! queue { get; }

 

var queue: dispatch_queue_t { get{} }

 

dispatch_queue_t queue { __get; }

 

ReadOnly Property queue() As dispatch_queue_t

queue  virtual Island-iOS, Island-iOS Simulator-x86_64, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator-x86_64, Island-UIKit for Mac-x86_64, Island-watchOS, Island-watchOS Simulator, Toffee-iOS, Toffee-iOS Simulator, Toffee-Mac Catalyst, Toffee-macOS, Toffee-tvOS, Toffee-tvOS Simulator, Toffee-watchOS, Toffee-watchOS Simulator

 

property queue: not nullable IOS_dispatch_queue read;

 

IOS_dispatch_queue! queue { get; }

 

// Island-iOS, Island-iOS Simulator-x86_64, Island-Mac Catalyst, Island-macOS, 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-iOS, Toffee-iOS Simulator, Toffee-Mac Catalyst, Toffee-macOS, Toffee-tvOS, Toffee-tvOS Simulator, Toffee-watchOS, Toffee-watchOS Simulator
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

 

// Island-UIKit for Mac-x86_64
class method global qos(qos: not nullable DispatchQoS.QoSClass): not nullable DispatchQueue
// Island-iOS, Island-iOS Simulator-x86_64, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator-x86_64, Island-watchOS, Island-watchOS Simulator
class method global qos(qos: not nullable QoSClass): not nullable DispatchQueue

 

// Island-UIKit for Mac-x86_64
static DispatchQueue! global qos(DispatchQoS.QoSClass! qos)
// Island-iOS, Island-iOS Simulator-x86_64, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator-x86_64, Island-watchOS, Island-watchOS Simulator
static DispatchQueue! global qos(QoSClass! qos)

 

// Toffee-UIKit for Mac
static func global(qos: DispatchQoS.QoSClass) -> DispatchQueue
// Toffee-iOS, Toffee-iOS Simulator, Toffee-Mac Catalyst, Toffee-macOS, Toffee-tvOS, Toffee-tvOS Simulator, Toffee-watchOS, Toffee-watchOS Simulator
static func global(qos: QoSClass) -> DispatchQueue

 

// Island-UIKit for Mac-x86_64
Shared Function global qos(qos As DispatchQoS.QoSClass) As DispatchQueue
// Island-iOS, Island-iOS Simulator-x86_64, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator-x86_64, Island-watchOS, Island-watchOS Simulator
Shared Function global qos(qos As QoSClass) As DispatchQueue

Parameters:

  • qos:

initialize Toffee

 

static func initialize()

 

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

 

// Island-UIKit for Mac-x86_64
method concurrentPerform iterations(iterations: not nullable Int) execute(work: not nullable Action<not nullable UInt>)
// Island-iOS, Island-iOS Simulator-x86_64, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator-x86_64, Island-watchOS, Island-watchOS Simulator
method concurrentPerform iterations(iterations: not nullable Int) execute(work: not nullable Action<not nullable UInt>)

 

// Island-UIKit for Mac-x86_64
void concurrentPerform iterations(Int! iterations) execute(Action<UInt!>! work)
// Island-iOS, Island-iOS Simulator-x86_64, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator-x86_64, Island-watchOS, Island-watchOS Simulator
void concurrentPerform iterations(Int! iterations) execute(Action<UInt!>! work)

 

// Toffee-UIKit for Mac
func concurrentPerform(iterations: Int, execute work: (UInt) -> ())
// Toffee-iOS, Toffee-iOS Simulator, Toffee-Mac Catalyst, Toffee-macOS, Toffee-tvOS, Toffee-tvOS Simulator, Toffee-watchOS, Toffee-watchOS Simulator
func concurrentPerform(iterations: Int, execute work: (UInt) -> ())

 

// Island-UIKit for Mac-x86_64
Sub concurrentPerform iterations(iterations As Int) execute(work As Action (Of UInt))
// Island-iOS, Island-iOS Simulator-x86_64, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator-x86_64, Island-watchOS, Island-watchOS Simulator
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: