onEmit

open override fun onEmit(callback: context(Simulator) (OutputT) -> Unit)

Registers a callback to be invoked when an entity is emitted.

Parameters

callback

the function to invoke with the emitted entity