subscribe

fun subscribe(action: (EntityChange) -> Unit): (EntityChange) -> Unit

Registers a specific state-change action for alerts and returns the action.

Samples

org.jetbrains.exposed.v1.tests.shared.entities.EntityHookTest.testCallingFlushNotifiesEntityHookSubscribers