Contents

performAndWait(_:)

Synchronously performs the specified closure on the context’s queue.

Declaration

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

Parameters

  • block:

    The closure to perform.

Mentioned in

Discussion

This method supports reentrancy — meaning it’s safe to call the method again, from within the closure, before the previous invocation completes.

See Also

Performing block operations