cerebral-signals
A mixed synchronous and asynchronous flow control tool
Creating a custom signal
const CerebralSignal = const MySignal = const signal =
Included context providers
Input
Any payload passed into signal or updated using "next" will be available on the context as "input".
const CerebralSignal = const InputProvider = const MySignal = { contextinputfoo // "bar"} const signal =
Output
Actions without any output will progress automatically. If you want to go down a specific path, pass payload and/or run async, you need an output to do that.
const CerebralSignal = const OutputProvivder = const MySignal = { // Trigger next action manually with a payload context} { // If InputProvider was available the updated // (merged) payload would be available on "input" // Goes down to actionC, argument would be a payload. // This is run async, which is why the action is marked // as async as well }actionBasync = true const signal =