Contents

reconnect(completionHandler:)

Reconnects the domain with the extension.

Declaration

func reconnect(completionHandler: @escaping  @Sendable ((any Error)?) -> Void)
func reconnect() async throws

Parameters

  • completionHandler:

    A block that the system calls after reconnecting the domain. The block takes the following parameter:

    error

    If an error occurs, this object contains information about the error; otherwise, it’s nil.

Discussion

Call this method to reconnect the domain after a call to the disconnect(reason:options:completionHandler:) method.

See Also

Working with domains