File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ extension DispatchWorkItem: ManageableWaiterWatchdog {}
26
26
/// This class manages the XCTWaiter instances which are currently waiting on a particular thread.
27
27
/// It facilitates "nested" waiters, allowing an outer waiter to interrupt inner waiters if it times
28
28
/// out.
29
- internal final class WaiterManager < WaiterType: ManageableWaiter > {
29
+ internal final class WaiterManager < WaiterType: ManageableWaiter > : NSObject {
30
30
31
31
/// The current thread's waiter manager. This is the only supported way to access an instance of
32
32
/// this class, since each instance is bound to a particular thread and is only concerned with
@@ -53,7 +53,7 @@ internal final class WaiterManager<WaiterType: ManageableWaiter> {
53
53
private let queue = DispatchQueue ( label: " org.swift.XCTest.WaiterManager " )
54
54
55
55
// Use `WaiterManager.current` to access the thread-specific instance
56
- private init ( ) { }
56
+ private override init ( ) { }
57
57
58
58
deinit {
59
59
assert ( managedWaiterStack. isEmpty, " Waiters still registered when WaiterManager is deallocating. " )
You can’t perform that action at this time.
0 commit comments