emo / me.eater.emo.utils / Router

Router

interface Router<C>

Used to select the next step in a workflow

Functions

route

abstract fun route(context: C): String?

Function that returns the next step, or null if this is supposed to be the last step

Inheritors

StaticRouter

class StaticRouter<C> : Router<C>

Router that always returns the same result