MapActionBuilder

class MapActionBuilder<T, R>(var name: Name, var meta: MutableMeta, val actionMeta: Meta, outputType: KType)

Action environment

Constructors

Link copied to clipboard
constructor(name: Name, meta: MutableMeta, actionMeta: Meta, outputType: KType)

Properties

Link copied to clipboard
val actionMeta: Meta
Link copied to clipboard
var meta: MutableMeta
Link copied to clipboard
var name: Name
Link copied to clipboard
lateinit var result: suspend ActionEnv.(T) -> R

Functions

Link copied to clipboard
inline fun <R1 : R> result(noinline f: suspend ActionEnv.(T) -> R1)

Calculate the result of goal

fun <R1 : R> result(outputType: KType, f: suspend ActionEnv.(T) -> R1)

Set unsafe outputType for the resulting data. Be sure that it is correct.