Timers
Membrane actions can be invoked manually or automatically, on a timer. We support three types of timers:
- Delays
- Scheduled
- Crons
To set up a timer, navigate to the Navigator panel, click on any program, find the action you want to run, and click the clock icon to configure when the program should run. Right click a timer to delete.
Example: add a cron, delete it, then add a delay and observe it firing.
Setting timers in code
You can also set up timers programmatically in Membrane. These three methods can be chained to actions, corresponding to the three types of timers listed above:
.$invokeIn()
.$invokeAt()
.$cron()