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:
+3
-3
@@ -3,9 +3,9 @@ title: Interval
|
||||
sidebar:
|
||||
order: 2
|
||||
---
|
||||
The `gen.interval` module emits a message at a specified duration. Sending any message to this module will reset the interval timer.
|
||||
The `time.interval` module emits a message at a specified duration. Sending any message to this module will reset the interval timer.
|
||||
|
||||
- **type**: `gen.interval`
|
||||
- **type**: `time.interval`
|
||||
- **params**:
|
||||
- **duration**: time in milliseconds between messsages
|
||||
|
||||
@@ -13,7 +13,7 @@ The `gen.interval` module emits a message at a specified duration. Sending any m
|
||||
Emits a message every 3 seconds
|
||||
```
|
||||
- id: every3Secs
|
||||
type: gen.interval
|
||||
type: time.interval
|
||||
params:
|
||||
duration: 3000
|
||||
```
|
||||
+3
-3
@@ -3,9 +3,9 @@ title: Timer
|
||||
sidebar:
|
||||
order: 1
|
||||
---
|
||||
The `gen.timer` module emits only one message after a specified duration. Sending any message to this module will reset the timer.
|
||||
The `time.timer` module emits only one message after a specified duration. Sending any message to this module will reset the timer.
|
||||
|
||||
- **type**: `gen.timer`
|
||||
- **type**: `time.timer`
|
||||
- **params**:
|
||||
- **duration**: time in milliseconds to wait before emitting message
|
||||
|
||||
@@ -13,7 +13,7 @@ The `gen.timer` module emits only one message after a specified duration. Sendin
|
||||
Emits a message 5 seconds after the module is initialized
|
||||
```
|
||||
- id: 5secs
|
||||
type: gen.timer
|
||||
type: time.timer
|
||||
params:
|
||||
duration: 5000
|
||||
```
|
||||
Reference in New Issue
Block a user