decideBlocking

inline fun <reified C : Any> decideBlocking(creation: Creation = Creation.NONE, name: String = defaultName(C::class.java), onDeleted: Boolean = false, produces: Set<Class<*>>? = null, noinline decide: suspend DecideScope.(S, C) -> Decision)

Decides commands of type C, named name, with a function that blocks its thread (@Blocking), such as one calling JDBC: the kernel runs it on its blocking dispatcher, a virtual thread, so it does not hold a worker thread.


fun <C : Any> decideBlocking(commandType: Class<C>, creation: Creation = Creation.NONE, name: String = defaultName(commandType), onDeleted: Boolean = false, produces: Set<Class<*>>? = null, decide: suspend DecideScope.(S, C) -> Decision)

Decides commands of commandType with a function that blocks its thread; see the reified overload.