Contents

performAndWait(_:)

Executes the provided closure on the coordinator’s queue and waits for it to finish.

Declaration

@preconcurrency func performAndWait<T>(_ block: @Sendable () throws -> T) rethrows -> T

Parameters

  • block:

    The closure to execute.

See Also

Performing tasks