onPathUpdate(_:)
Set a closure to be called when the connection’s path has changed, which may be called multiple times until the connection is cancelled.
Declaration
@discardableResult func onPathUpdate(_ handler: @escaping @isolated(any) @Sendable (Self, NWPath) -> Void) -> SelfDiscussion
This closure will inherit the isolation domain of the caller.