sleep(completionHandler:)
Handle a sleep event.
Declaration
func sleep(completionHandler: @escaping @Sendable () -> Void)func sleep() asyncParameters
- completionHandler:
Implementations of this method must execute this block when the provider is finished handling the sleep event.
Discussion
This method is called by the system when the device is about to go to sleep.
NEProvider subclasses should override this method if the provider needs to perform any tasks before the device sleeps, such as disconnecting a tunnel connection.