mirror of
https://github.com/jwetzell/showbridge-docs.git
synced 2026-05-13 21:14:17 +00:00
switch timer and interval to new namespace
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
---
|
||||
title: Timer
|
||||
sidebar:
|
||||
order: 1
|
||||
---
|
||||
The `time.timer` module emits only one message after a specified duration. Sending any message to this module will reset the timer.
|
||||
|
||||
- **type**: `time.timer`
|
||||
- **params**:
|
||||
- **duration**: time in milliseconds to wait before emitting message
|
||||
|
||||
### Example snippet
|
||||
Emits a message 5 seconds after the module is initialized
|
||||
```
|
||||
- id: 5secs
|
||||
type: time.timer
|
||||
params:
|
||||
duration: 5000
|
||||
```
|
||||
Reference in New Issue
Block a user