Handlers

The handlers module lets you define reactions to events.

Handlers respond to Events and return zero, one, or many Effects.

There are some special types of handlers, like Protocols and CronTasks. These offer a differentiated interface for their particular use-cases. For example, CronTasks only ever respond to the CRON event, require a schedule to be specified, and expect the execute method to be implemented rather than compute.