close

suspend fun close()

Atomically clears credentials, waits for client-owned work to finish cancellation, and closes this client's configured HTTP transport. Concurrent callers wait for the same cleanup. The caller-supplied base client is not closed when Ktor's configured clone does not own its engine.