j-templates 6.1.0 → 6.1.1
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.
- package/Utils/thread.js +2 -1
- package/package.json +1 -1
package/Utils/thread.js
CHANGED
|
@@ -11,6 +11,7 @@ const workTimeMs = 16;
|
|
|
11
11
|
const contextQueue = list_1.List.Create();
|
|
12
12
|
let threadContext = null;
|
|
13
13
|
let timeoutRunning = false;
|
|
14
|
+
const scheduleInitialCallback = queueMicrotask;
|
|
14
15
|
const scheduleCallback = setTimeout;
|
|
15
16
|
function timeRemaining() {
|
|
16
17
|
return this.end - Date.now();
|
|
@@ -35,7 +36,7 @@ function ScheduleWork(ctx) {
|
|
|
35
36
|
if (timeoutRunning)
|
|
36
37
|
return;
|
|
37
38
|
timeoutRunning = true;
|
|
38
|
-
|
|
39
|
+
scheduleInitialCallback(ProcessQueue);
|
|
39
40
|
}
|
|
40
41
|
function Invoke(ctx, callback) {
|
|
41
42
|
const parent = ctx.workEndNode;
|