Contents

init(block:)

Creates and returns an NSBlockOperation object and adds the specified block to it.

Declaration

convenience init(block: @escaping  @Sendable () -> Void)

Parameters

  • block:

    The block to add to the new block operation object’s list. The block should take no parameters and have no return value.

Return Value

A new block operation object.

See Also

Related Documentation

  • Threading Programming Guide

Managing the Blocks in the Operation