One Logo Pool Ball
Dispatch · IOS API REFERENCE

DispatchSemaphore

class · SDK 27.1

class DispatchSemaphore

Members (5)

init · iOS 4.0+

init

TypeScript
static init(value: number): DispatchSemaphore
Swift declaration
init(value: Int)
method

wait

TypeScript
waitWallTimeout(wallTimeout: DispatchWallTime): DispatchTimeoutResult
Swift declaration
func wait(wallTimeout: DispatchWallTime) -> DispatchTimeoutResult
method

wait

TypeScript
waitTimeout(timeout: DispatchTime): DispatchTimeoutResult
Swift declaration
func wait(timeout: DispatchTime) -> DispatchTimeoutResult
method

wait

TypeScript
wait(): void
Swift declaration
func wait()
method

signal

TypeScript
signal(): number
Swift declaration
@discardableResult func signal() -> Int

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

DispatchSemaphore.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All Dispatch types →