SokDoc

sok / Sok.Buffer / BufferPool / freeBuffer

freeBuffer

suspend fun freeBuffer(obj: MultiplatformBuffer): Unit (source)

Platform and version requirements: Common

Free the object in order to let another coroutine have it. If you forget to call this method the pool will empty itself and starve, blocking all coroutines calling requestBuffer()

Parameters

obj - Buffer to free