bindRuntime

fun bindRuntime(session: UiSession? = null, callback: (DirtyMask) -> Unit): () -> Unit(source)

Binds this never-owned node to a runtime invalidation callback.

The privileged runtime invokes the returned idempotent release only after disposal has been attempted. Release retires this node permanently, and another runtime claim is impossible after retirement.

Return

an idempotent release function that retires this node after disposal is attempted.

Parameters

callback

the runtime callback that records invalidation and validates its thread.

Throws

when this node is already bound or retired.