senses:packages:kmj-intervals
Differences
This shows you the differences between two versions of the page.
senses:packages:kmj-intervals [2025/07/28 01:38] – created flash | senses:packages:kmj-intervals [2025/07/28 03:26] (current) – args & rets on same level as syntax flash | ||
---|---|---|---|
Line 18: | Line 18: | ||
create(action: | create(action: | ||
- | === Arguments === | + | ==== Arguments |
- The first argument should contain the function that is to be run at an interval or be deferred. | - The first argument should contain the function that is to be run at an interval or be deferred. | ||
Line 24: | Line 24: | ||
- The third argument contains the amount of times the interval should be run, if **'' | - The third argument contains the amount of times the interval should be run, if **'' | ||
- | === Return values | + | ==== Returns ==== |
- The first return value contains a unique identifier representing the interval registration. It can be used to (prematurely) destroy it to prevent it from running further. | - The first return value contains a unique identifier representing the interval registration. It can be used to (prematurely) destroy it to prevent it from running further. | ||
Line 36: | Line 36: | ||
destroy(interval: | destroy(interval: | ||
- | === Arguments === | + | ==== Arguments |
- The first argument should contain the unique identifier of an interval returned at creation. | - The first argument should contain the unique identifier of an interval returned at creation. | ||
- | === Return values | + | ==== Returns ==== |
//This function does not return anything.// | //This function does not return anything.// |
senses/packages/kmj-intervals.txt · Last modified: by flash