reactronic 0.22.107 → 0.22.108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -22,7 +22,7 @@ class Transaction {
|
|
|
22
22
|
static run(options, func, ...args) { return TransactionImpl.run(options, func, ...args); }
|
|
23
23
|
static standalone(func, ...args) { return TransactionImpl.standalone(func, ...args); }
|
|
24
24
|
static off(func, ...args) { return TransactionImpl.off(func, ...args); }
|
|
25
|
-
static isFrameOver(everyN = 1, timeLimit =
|
|
25
|
+
static isFrameOver(everyN = 1, timeLimit = 10) { return TransactionImpl.isFrameOver(everyN, timeLimit); }
|
|
26
26
|
static requestNextFrame(sleepTime = 0) { return TransactionImpl.requestNextFrame(sleepTime); }
|
|
27
27
|
static get isCanceled() { return TransactionImpl.current.isCanceled; }
|
|
28
28
|
}
|
|
@@ -143,7 +143,7 @@ class TransactionImpl extends Transaction {
|
|
|
143
143
|
TransactionImpl.curr = outer;
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
|
-
static isFrameOver(everyN = 1, timeLimit =
|
|
146
|
+
static isFrameOver(everyN = 1, timeLimit = 10) {
|
|
147
147
|
TransactionImpl.frameOverCounter++;
|
|
148
148
|
let result = TransactionImpl.frameOverCounter % everyN === 0;
|
|
149
149
|
if (result) {
|