One Logo Pool Ball
Foundation · IOS API REFERENCE

BlockOperation

class · iOS 4.0+ · SDK 27.1

class BlockOperation

Members (3)

init · iOS 4.0+

init

TypeScript
static init(block: (() => void)): BlockOperation
Swift declaration
convenience init(block: @escaping @Sendable () -> Void)
method · iOS 4.0+

addExecutionBlock

TypeScript
addExecutionBlock(block: (() => void)): void
Swift declaration
func addExecutionBlock(_ block: @escaping @Sendable () -> Void)
get · iOS 4.0+

executionBlocks

TypeScript
get executionBlocks(): Array<(() => Promise<void>)>
Swift declaration
var executionBlocks: [@Sendable () -> Void] { get }

Skipped declarations

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

BlockOperation.init()

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

All Foundation types →