We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 840aac4 commit b202a8dCopy full SHA for b202a8d
Sources/Foundation/RunLoop.swift
@@ -294,6 +294,10 @@ extension RunLoop {
294
public var isValid: Bool {
295
CFRunLoopObserverIsValid(cfObserver)
296
}
297
+
298
+ deinit {
299
+ invalidate()
300
+ }
301
302
303
@available(*, deprecated, message: "For XCTest use only.")
@@ -374,5 +378,9 @@ extension RunLoop {
374
378
open func signal() {
375
379
CFRunLoopSourceSignal(cfSource)
376
380
381
382
383
384
377
385
386
0 commit comments