Suspending

class Suspending<S : Any>(val applies: (Class<*>) -> Boolean, val blocking: Boolean, val after: suspend DecideScope.(S, Any) -> List<Any>, val produces: Set<Class<*>>? = null) : AfterFunction<S>

A suspending after hook; a blocking one blocks its thread, so the kernel runs it on a virtual thread.

Constructors

Link copied to clipboard
constructor(applies: (Class<*>) -> Boolean, blocking: Boolean, after: suspend DecideScope.(S, Any) -> List<Any>, produces: Set<Class<*>>? = null)
constructor(applies: (Class<*>) -> Boolean, after: suspend DecideScope.(S, Any) -> List<Any>)

Properties

Link copied to clipboard
val after: suspend DecideScope.(S, Any) -> List<Any>
Link copied to clipboard
open override val applies: (Class<*>) -> Boolean
Link copied to clipboard
Link copied to clipboard
open override val produces: Set<Class<*>>?

The events it may produce, as DecideFunction.produces; null when they are unknown, and then not checked.