terminate

abstract fun terminate()

Deprecated

Use cancel() instead.

Replace with

import kotlinx.coroutines.cancel
cancel()

Initiates a connection termination immediately. Termination may complete asynchronously.