mirror of
https://github.com/jwetzell/showbridge-docs.git
synced 2026-05-14 05:24:21 +00:00
switch timer and interval to new namespace
This commit is contained in:
+2
-2
@@ -31,9 +31,9 @@ export default defineConfig({
|
|||||||
label: 'Modules',
|
label: 'Modules',
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
label: "Generator",
|
label: "Time",
|
||||||
collapsed: true,
|
collapsed: true,
|
||||||
autogenerate: { directory: 'modules/generator' }
|
autogenerate: { directory: 'modules/time' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "Network",
|
label: "Network",
|
||||||
|
|||||||
+3
-3
@@ -3,9 +3,9 @@ title: Interval
|
|||||||
sidebar:
|
sidebar:
|
||||||
order: 2
|
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**:
|
- **params**:
|
||||||
- **duration**: time in milliseconds between messsages
|
- **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
|
Emits a message every 3 seconds
|
||||||
```
|
```
|
||||||
- id: every3Secs
|
- id: every3Secs
|
||||||
type: gen.interval
|
type: time.interval
|
||||||
params:
|
params:
|
||||||
duration: 3000
|
duration: 3000
|
||||||
```
|
```
|
||||||
+3
-3
@@ -3,9 +3,9 @@ title: Timer
|
|||||||
sidebar:
|
sidebar:
|
||||||
order: 1
|
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**:
|
- **params**:
|
||||||
- **duration**: time in milliseconds to wait before emitting message
|
- **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
|
Emits a message 5 seconds after the module is initialized
|
||||||
```
|
```
|
||||||
- id: 5secs
|
- id: 5secs
|
||||||
type: gen.timer
|
type: time.timer
|
||||||
params:
|
params:
|
||||||
duration: 5000
|
duration: 5000
|
||||||
```
|
```
|
||||||
Reference in New Issue
Block a user