Skip to content

Loading search…

handlers

Handlers that resolve events inside the program.

  • Layer: handlers
  • Needs: –
  • Requires: –
  • Conflicts with: –
  • Never dropped: no
  • Mixin: skills.handlers:Handlers
  • Manifest: skills/handlers/skill.toml
def on(event, handler)

Register handler(trace) for an event kind. Return True (or None) to resolve it, or False to let it escalate.

From the RoboDojo prompt pack (prompts/robodojo/), with every skill and feature on:

on(event, handler) handler(trace) runs when that event ends an execution; return
False to escalate, anything else to continue the program.