detach

abstract fun detach()(source)

Releases attachment-scoped resources while retaining runtime identity and binding ownership through the subsequent dispose attempt.

The runtime invokes this callback on the owning tree thread at most once and only after attach was attempted. Cleanup invokes it before dispose, even when attach failed.