Skip to content

Commit 42066f0

Browse files
committed
Added compatability with Swift 5.9, by making an implicit existential explicit.
1 parent 5efe44e commit 42066f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/NetworkInterfaceChangeMonitoring/NetworkInterfaceChangeMonitoring.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public extension NetworkInterface {
6363
/// The ideal value is use-case specific. If you don't care whether you see changes as single modifications vs pairs of adds and removes, a value of zero (the default) is the best. Otherwise, a single second is helpful but typically not sufficient to coalesce all modifications. Several seconds is usually sufficient, but there can still be exceptions. Consider what the delay means for your use-case - e.g. if it takes a while to switch wifi networks, during which time the internet is not accessible, are you satisfied with eventually just receiving notification of a change in wifi settings or do you want to know more immediately that access via wifi has been [temporarily] lost?
6464
///
6565
/// - Returns: An endless stream of change events. Awaiting its next value will block (as needed) until the next change occurs.
66-
static func changes(coalescingPeriod: Int = 0) -> AsyncThrowingStream<Change, Error> {
66+
static func changes(coalescingPeriod: Int = 0) -> AsyncThrowingStream<Change, any Error> {
6767
AsyncThrowingStream { continuation -> Void in
6868
var lastInterfaces: Set<NetworkInterface>
6969

0 commit comments

Comments
 (0)