ktor-io / io.ktor.utils.io.pool / DefaultPool / dispose

dispose

fun dispose(): Unit

Overrides ObjectPool.dispose

Dispose the whole pool. None of borrowed objects could be used after the pool gets disposed otherwise it can result in undefined behaviour