Skip to content

Commit a8cd65c

Browse files
committed
For completeness, add _remove(_Source, for: Mode)
1 parent f0126a3 commit a8cd65c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sources/Foundation/RunLoop.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,11 @@ extension RunLoop {
233233
public func _add(_ source: _Source, forMode mode: RunLoop.Mode) {
234234
CFRunLoopAddSource(_cfRunLoop, source.cfSource, mode._cfStringUniquingKnown)
235235
}
236+
237+
@available(*, deprecated, message: "For XCTest use only.")
238+
open func remove(_ source: _Source, for mode: RunLoop.Mode) {
239+
CFRunLoopRemoveSource(_cfRunLoop, source.cfSource, mode._cfStringUniquingKnown)
240+
}
236241
}
237242

238243
extension RunLoop {

0 commit comments

Comments
 (0)