Instance Method

perform​And​Wait(_:​)

Synchronously performs a given block on the receiver’s queue.

Declaration

func performAndWait(_ block: @escaping () -> Void)

Parameters

block

The block to perform.

Discussion

You use this method to send messages to managed objects if the context was initialized using private​Queue​Concurrency​Type or main​Queue​Concurrency​Type.

This method may safely be called reentrantly.

See Also

Related Symbols

func perform(() -> Void)

Asynchronously performs a given block on the receiver’s queue.