addTeardownBlock(_:)
Registers a block of teardown code to run after the current test method ends.
Declaration
@preconcurrency func addTeardownBlock(_ block: @escaping @MainActor @Sendable () throws -> Void)Parameters
- block:
A block of teardown code.