subscribe

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

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

Samples

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