ItemCompleted

data class ItemCompleted<out State>(val step: Int, val node: String, val item: Int, val result: Any?, val state: State) : GraphEvent<State>

The work of one item of node finished in step, for a node that runs for each item of a list. One arrives for each item, in the order they finish, after the NodeStarted of node and before its NodeCompleted. An item whose result was saved before, and that does not run again, has one too, so a screen can count the items that are done.

Constructors

Link copied to clipboard
constructor(step: Int, node: String, item: Int, result: Any?, state: State)

Properties

Link copied to clipboard
val item: Int

the position of the item in the list.

Link copied to clipboard
Link copied to clipboard
val result: Any?

what the work of the item returned. Its type is the result type of the node: check it with is or as?.

Link copied to clipboard
open override val state: State

the state the node received.

Link copied to clipboard
val step: Int