perform(_:)
Asynchronously performs the specified closure on the context’s queue.
Declaration
func perform(_ block: @escaping @Sendable () -> Void)Parameters
- block:
The closure to perform.
Mentioned in
Discussion
This method encapsulates an autorelease pool and a call to processPendingChanges().