AsynchronousBlockOperation
public final class AsynchronousBlockOperation : AsynchronousOperation
A sublcass of AsynchronousOperation
to execute a closure.
-
A closure type that takes a closure as its parameter.
Declaration
Swift
public typealias Block = (@escaping () -> Void) -> Void
-
The designated initializer.
Declaration
Swift
public init(block: @escaping Block)
Parameters
block
The closure to run when the operation executes; the parameter passed to the block MUST be invoked by your code, or else the
AsynchronousBlockOperation
will never finish executing.
-
Declaration
Swift
public final override func main()