VoidEventBlock

class VoidEventBlock<T : Any, P, ModelStates : Enum<*>, C : KlerkContext, V>(name: String, type: BlockType) : Block<T, ModelStates, C, V>

Constructors

Link copied to clipboard
constructor(name: String, type: BlockType)

Functions

Link copied to clipboard
fun action(function: (args: ArgForVoidEvent<T, P, C, V>) -> Unit, onCondition: (args: ArgForVoidEvent<T, P, C, V>) -> Boolean? = null)

A "fire and forget" action that will be executed asynchronously.

Link copied to clipboard
fun createCommands(function: (args: ArgForVoidEvent<T, P, C, V>) -> List<Command<out Any, out Any>>, onCondition: (args: ArgForVoidEvent<T, P, C, V>) -> Boolean? = null)
Link copied to clipboard
fun createModel(initialState: ModelStates, function: (args: ArgForVoidEvent<T, P, C, V>) -> T, onCondition: (args: ArgForVoidEvent<T, P, C, V>) -> Boolean? = null)
Link copied to clipboard
fun job(function: (args: ArgForVoidEvent<T, P, C, V>) -> List<Job<C, V>>, onCondition: (args: ArgForVoidEvent<T, P, C, V>) -> Boolean? = null)
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String