subscribe To Available Events
abstract fun subscribeToAvailableEvents(context: C, id: ModelID<Any>, minimumCheckInterval: Duration? = null): Flow<List<EventReference>>
Notifies when there is a change in which events an actor can trigger on a model.
Parameters
actor
the actor for whom we are asking
id
specifies the model that should be monitored
minimum Check Interval
if provided, extra checks will happen if there has been no event during this time. This can be useful if you have rules that e.g. depends on the current time.
Throws
if minimumCheckInterval is less than one second