Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 18.117.132.79
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
wb /
node_modules /
rxjs /
src /
scheduler /
Delete
Unzip
Name
Size
Permission
Date
Action
Action.ts
1.21
KB
-rw-rw-r--
2022-08-30 11:49
AnimationFrameAction.ts
2.05
KB
-rw-rw-r--
2022-08-30 11:49
AnimationFrameScheduler.ts
756
B
-rw-rw-r--
2022-08-30 11:49
AsapAction.ts
1.92
KB
-rw-rw-r--
2022-08-30 11:49
AsapScheduler.ts
746
B
-rw-rw-r--
2022-08-30 11:49
AsyncAction.ts
4.84
KB
-rw-rw-r--
2022-08-30 11:49
AsyncScheduler.ts
1.08
KB
-rw-rw-r--
2022-08-30 11:49
QueueAction.ts
1.35
KB
-rw-rw-r--
2022-08-30 11:49
QueueScheduler.ts
107
B
-rw-rw-r--
2022-08-30 11:49
VirtualTimeScheduler.ts
2.89
KB
-rw-rw-r--
2022-08-30 11:49
animationFrame.ts
1.18
KB
-rw-rw-r--
2022-08-30 11:49
asap.ts
1.56
KB
-rw-rw-r--
2022-08-30 11:49
async.ts
1.38
KB
-rw-rw-r--
2022-08-30 11:49
queue.ts
1.91
KB
-rw-rw-r--
2022-08-30 11:49
Save
Rename
import { QueueAction } from './QueueAction'; import { QueueScheduler } from './QueueScheduler'; /** * * Queue Scheduler * * <span class="informal">Put every next task on a queue, instead of executing it immediately</span> * * `queue` scheduler, when used with delay, behaves the same as {@link async} scheduler. * * When used without delay, it schedules given task synchronously - executes it right when * it is scheduled. However when called recursively, that is when inside the scheduled task, * another task is scheduled with queue scheduler, instead of executing immediately as well, * that task will be put on a queue and wait for current one to finish. * * This means that when you execute task with `queue` scheduler, you are sure it will end * before any other task scheduled with that scheduler will start. * * @examples <caption>Schedule recursively first, then do something</caption> * * Rx.Scheduler.queue.schedule(() => { * Rx.Scheduler.queue.schedule(() => console.log('second')); // will not happen now, but will be put on a queue * * console.log('first'); * }); * * // Logs: * // "first" * // "second" * * * @example <caption>Reschedule itself recursively</caption> * * Rx.Scheduler.queue.schedule(function(state) { * if (state !== 0) { * console.log('before', state); * this.schedule(state - 1); // `this` references currently executing Action, * // which we reschedule with new state * console.log('after', state); * } * }, 0, 3); * * // In scheduler that runs recursively, you would expect: * // "before", 3 * // "before", 2 * // "before", 1 * // "after", 1 * // "after", 2 * // "after", 3 * * // But with queue it logs: * // "before", 3 * // "after", 3 * // "before", 2 * // "after", 2 * // "before", 1 * // "after", 1 * * * @static true * @name queue * @owner Scheduler */ export const queue = new QueueScheduler(QueueAction);