on

infix fun Node.on(route: String): PendingEdge

Starts an edge that fires when this node emits route as a Route.Tag; then completes it.


infix fun Node.on(route: Int): PendingEdge

Starts an edge that fires when this node emits route as a Route.Num; then completes it.


infix fun Node.on(route: Boolean): PendingEdge

Starts an edge that fires when this node emits route as a Route.Flag; then completes it.


infix fun Node.on(route: Route): PendingEdge

Starts an edge that fires when this node emits route; then completes it.


infix fun Node.on(routes: RouteSet): PendingEdge

Starts one edge that fires once when this node emits any of routes (built with anyOf); then completes it.