close

abstract override fun close()(source)

Permanently releases platform bindings and native references on the owner thread.

Close is idempotent after completion.

Throws

when called from another thread.

when cleanup fails.