observe

fun observe(callback: (String) -> Unit): AutoCloseable(source)

Installs the sole retained observer used by a runtime text-field node.

This privileged bridge is not an application event API. The returned release operation is idempotent and owner-thread confined.

Return

an idempotent subscription release operation.

Parameters

callback

callback invoked synchronously after each distinct successful write.

Throws

when called from another thread or while another observer is live.