mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-06-12 05:31:41 +00:00
update
This commit is contained in:
47
node_modules/rxjs/_esm5/scheduler/Action.js
generated
vendored
Normal file
47
node_modules/rxjs/_esm5/scheduler/Action.js
generated
vendored
Normal file
@ -0,0 +1,47 @@
|
||||
/** PURE_IMPORTS_START .._Subscription PURE_IMPORTS_END */
|
||||
var __extends = (this && this.__extends) || function (d, b) {
|
||||
for (var p in b)
|
||||
if (b.hasOwnProperty(p))
|
||||
d[p] = b[p];
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
import { Subscription } from '../Subscription';
|
||||
/**
|
||||
* A unit of work to be executed in a {@link Scheduler}. An action is typically
|
||||
* created from within a Scheduler and an RxJS user does not need to concern
|
||||
* themselves about creating and manipulating an Action.
|
||||
*
|
||||
* ```ts
|
||||
* class Action<T> extends Subscription {
|
||||
* new (scheduler: Scheduler, work: (state?: T) => void);
|
||||
* schedule(state?: T, delay: number = 0): Subscription;
|
||||
* }
|
||||
* ```
|
||||
*
|
||||
* @class Action<T>
|
||||
*/
|
||||
export var Action = /*@__PURE__*/ (/*@__PURE__*/ function (_super) {
|
||||
__extends(Action, _super);
|
||||
function Action(scheduler, work) {
|
||||
_super.call(this);
|
||||
}
|
||||
/**
|
||||
* Schedules this action on its parent Scheduler for execution. May be passed
|
||||
* some context object, `state`. May happen at some point in the future,
|
||||
* according to the `delay` parameter, if specified.
|
||||
* @param {T} [state] Some contextual data that the `work` function uses when
|
||||
* called by the Scheduler.
|
||||
* @param {number} [delay] Time to wait before executing the work, where the
|
||||
* time unit is implicit and defined by the Scheduler.
|
||||
* @return {void}
|
||||
*/
|
||||
Action.prototype.schedule = function (state, delay) {
|
||||
if (delay === void 0) {
|
||||
delay = 0;
|
||||
}
|
||||
return this;
|
||||
};
|
||||
return Action;
|
||||
}(Subscription));
|
||||
//# sourceMappingURL=Action.js.map
|
1
node_modules/rxjs/_esm5/scheduler/Action.js.map
generated
vendored
Normal file
1
node_modules/rxjs/_esm5/scheduler/Action.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"Action.js","sourceRoot":"","sources":["../../src/scheduler/Action.ts"],"names":[],"mappings":";;;;;OACO,EAAE,YAAY,EAAE,MAAM,iBAAiB;AAE9C;;;;;;;;;;;;;GAaG;AACH;IAA+B,0BAAY;IACzC,gBAAY,SAAoB,EAAE,IAA0C;QAC1E,iBAAO,CAAC;IACV,CAAC;IACD;;;;;;;;;OASG;IACI,yBAAQ,GAAf,UAAgB,KAAS,EAAE,KAAiB;QAAjB,qBAAiB,GAAjB,SAAiB;QAC1C,MAAM,CAAC,IAAI,CAAC;IACd,CAAC;IACH,aAAC;AAAD,CAAC,AAjBD,CAA+B,YAAY,GAiB1C"}
|
60
node_modules/rxjs/_esm5/scheduler/AnimationFrameAction.js
generated
vendored
Normal file
60
node_modules/rxjs/_esm5/scheduler/AnimationFrameAction.js
generated
vendored
Normal file
@ -0,0 +1,60 @@
|
||||
/** PURE_IMPORTS_START ._AsyncAction,.._util_AnimationFrame PURE_IMPORTS_END */
|
||||
var __extends = (this && this.__extends) || function (d, b) {
|
||||
for (var p in b)
|
||||
if (b.hasOwnProperty(p))
|
||||
d[p] = b[p];
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
import { AsyncAction } from './AsyncAction';
|
||||
import { AnimationFrame } from '../util/AnimationFrame';
|
||||
/**
|
||||
* We need this JSDoc comment for affecting ESDoc.
|
||||
* @ignore
|
||||
* @extends {Ignored}
|
||||
*/
|
||||
export var AnimationFrameAction = /*@__PURE__*/ (/*@__PURE__*/ function (_super) {
|
||||
__extends(AnimationFrameAction, _super);
|
||||
function AnimationFrameAction(scheduler, work) {
|
||||
_super.call(this, scheduler, work);
|
||||
this.scheduler = scheduler;
|
||||
this.work = work;
|
||||
}
|
||||
AnimationFrameAction.prototype.requestAsyncId = function (scheduler, id, delay) {
|
||||
if (delay === void 0) {
|
||||
delay = 0;
|
||||
}
|
||||
// If delay is greater than 0, request as an async action.
|
||||
if (delay !== null && delay > 0) {
|
||||
return _super.prototype.requestAsyncId.call(this, scheduler, id, delay);
|
||||
}
|
||||
// Push the action to the end of the scheduler queue.
|
||||
scheduler.actions.push(this);
|
||||
// If an animation frame has already been requested, don't request another
|
||||
// one. If an animation frame hasn't been requested yet, request one. Return
|
||||
// the current animation frame request id.
|
||||
return scheduler.scheduled || (scheduler.scheduled = AnimationFrame.requestAnimationFrame(scheduler.flush.bind(scheduler, null)));
|
||||
};
|
||||
AnimationFrameAction.prototype.recycleAsyncId = function (scheduler, id, delay) {
|
||||
if (delay === void 0) {
|
||||
delay = 0;
|
||||
}
|
||||
// If delay exists and is greater than 0, or if the delay is null (the
|
||||
// action wasn't rescheduled) but was originally scheduled as an async
|
||||
// action, then recycle as an async action.
|
||||
if ((delay !== null && delay > 0) || (delay === null && this.delay > 0)) {
|
||||
return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);
|
||||
}
|
||||
// If the scheduler queue is empty, cancel the requested animation frame and
|
||||
// set the scheduled flag to undefined so the next AnimationFrameAction will
|
||||
// request its own.
|
||||
if (scheduler.actions.length === 0) {
|
||||
AnimationFrame.cancelAnimationFrame(id);
|
||||
scheduler.scheduled = undefined;
|
||||
}
|
||||
// Return undefined so the action knows to request a new async id if it's rescheduled.
|
||||
return undefined;
|
||||
};
|
||||
return AnimationFrameAction;
|
||||
}(AsyncAction));
|
||||
//# sourceMappingURL=AnimationFrameAction.js.map
|
1
node_modules/rxjs/_esm5/scheduler/AnimationFrameAction.js.map
generated
vendored
Normal file
1
node_modules/rxjs/_esm5/scheduler/AnimationFrameAction.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"AnimationFrameAction.js","sourceRoot":"","sources":["../../src/scheduler/AnimationFrameAction.ts"],"names":[],"mappings":";;;;;OAAO,EA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,CAAC,CAAC;QACpD,CAAC;QACD,4EAA4E;QAC5E,4EAA4E;QAC5E,mBAAmB;QACnB,EAAE,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC;YACnC,cAAc,CAAC,oBAAoB,CAAC,EAAE,CAAC,CAAC;YACxC,SAAS,CAAC,SAAS,GAAG,SAAS,CAAC;QAClC,CAAC;QACD,sFAAsF;QACtF,MAAM,CAAC,SAAS,CAAC;IACnB,CAAC;IACH,2BAAC;AAAD,CAAC,AAtCD,CAA6C,WAAW,GAsCvD"}
|
38
node_modules/rxjs/_esm5/scheduler/AnimationFrameScheduler.js
generated
vendored
Normal file
38
node_modules/rxjs/_esm5/scheduler/AnimationFrameScheduler.js
generated
vendored
Normal file
@ -0,0 +1,38 @@
|
||||
/** PURE_IMPORTS_START ._AsyncScheduler PURE_IMPORTS_END */
|
||||
var __extends = (this && this.__extends) || function (d, b) {
|
||||
for (var p in b)
|
||||
if (b.hasOwnProperty(p))
|
||||
d[p] = b[p];
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
import { AsyncScheduler } from './AsyncScheduler';
|
||||
export var AnimationFrameScheduler = /*@__PURE__*/ (/*@__PURE__*/ function (_super) {
|
||||
__extends(AnimationFrameScheduler, _super);
|
||||
function AnimationFrameScheduler() {
|
||||
_super.apply(this, arguments);
|
||||
}
|
||||
AnimationFrameScheduler.prototype.flush = function (action) {
|
||||
this.active = true;
|
||||
this.scheduled = undefined;
|
||||
var actions = this.actions;
|
||||
var error;
|
||||
var index = -1;
|
||||
var count = actions.length;
|
||||
action = action || actions.shift();
|
||||
do {
|
||||
if (error = action.execute(action.state, action.delay)) {
|
||||
break;
|
||||
}
|
||||
} while (++index < count && (action = actions.shift()));
|
||||
this.active = false;
|
||||
if (error) {
|
||||
while (++index < count && (action = actions.shift())) {
|
||||
action.unsubscribe();
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
};
|
||||
return AnimationFrameScheduler;
|
||||
}(AsyncScheduler));
|
||||
//# sourceMappingURL=AnimationFrameScheduler.js.map
|
1
node_modules/rxjs/_esm5/scheduler/AnimationFrameScheduler.js.map
generated
vendored
Normal file
1
node_modules/rxjs/_esm5/scheduler/AnimationFrameScheduler.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"AnimationFrameScheduler.js","sourceRoot":"","sources":["../../src/scheduler/AnimationFrameScheduler.ts"],"names":[],"mappings":";;;;;OACO,EAAE,cAAc,EAAE,MAAM,kBAAkB;AAEjD;IAA6C,2CAAc;IAA3D;QAA6C,8BAAc;IA2B3D,CAAC;IA1BQ,uCAAK,GAAZ,UAAa,MAAyB;QAEpC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACnB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAEpB,0BAAO,CAAS;QACvB,IAAI,KAAU,CAAC;QACf,IAAI,KAAK,GAAW,CAAC,CAAC,CAAC;QACvB,IAAI,KAAK,GAAW,OAAO,CAAC,MAAM,CAAC;QACnC,MAAM,GAAG,MAAM,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC;QAEnC,GAAG,CAAC;YACF,EAAE,CAAC,CAAC,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;gBACvD,KAAK,CAAC;YACR,CAAC;QACH,CAAC,QAAQ,EAAE,KAAK,GAAG,KAAK,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC,EAAE;QAExD,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QAEpB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;YACV,OAAO,EAAE,KAAK,GAAG,KAAK,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC;gBACrD,MAAM,CAAC,WAAW,EAAE,CAAC;YACvB,CAAC;YACD,MAAM,KAAK,CAAC;QACd,CAAC;IACH,CAAC;IACH,8BAAC;AAAD,CAAC,AA3BD,CAA6C,cAAc,GA2B1D"}
|
60
node_modules/rxjs/_esm5/scheduler/AsapAction.js
generated
vendored
Normal file
60
node_modules/rxjs/_esm5/scheduler/AsapAction.js
generated
vendored
Normal file
@ -0,0 +1,60 @@
|
||||
/** PURE_IMPORTS_START .._util_Immediate,._AsyncAction PURE_IMPORTS_END */
|
||||
var __extends = (this && this.__extends) || function (d, b) {
|
||||
for (var p in b)
|
||||
if (b.hasOwnProperty(p))
|
||||
d[p] = b[p];
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
import { Immediate } from '../util/Immediate';
|
||||
import { AsyncAction } from './AsyncAction';
|
||||
/**
|
||||
* We need this JSDoc comment for affecting ESDoc.
|
||||
* @ignore
|
||||
* @extends {Ignored}
|
||||
*/
|
||||
export var AsapAction = /*@__PURE__*/ (/*@__PURE__*/ function (_super) {
|
||||
__extends(AsapAction, _super);
|
||||
function AsapAction(scheduler, work) {
|
||||
_super.call(this, scheduler, work);
|
||||
this.scheduler = scheduler;
|
||||
this.work = work;
|
||||
}
|
||||
AsapAction.prototype.requestAsyncId = function (scheduler, id, delay) {
|
||||
if (delay === void 0) {
|
||||
delay = 0;
|
||||
}
|
||||
// If delay is greater than 0, request as an async action.
|
||||
if (delay !== null && delay > 0) {
|
||||
return _super.prototype.requestAsyncId.call(this, scheduler, id, delay);
|
||||
}
|
||||
// Push the action to the end of the scheduler queue.
|
||||
scheduler.actions.push(this);
|
||||
// If a microtask has already been scheduled, don't schedule another
|
||||
// one. If a microtask hasn't been scheduled yet, schedule one now. Return
|
||||
// the current scheduled microtask id.
|
||||
return scheduler.scheduled || (scheduler.scheduled = Immediate.setImmediate(scheduler.flush.bind(scheduler, null)));
|
||||
};
|
||||
AsapAction.prototype.recycleAsyncId = function (scheduler, id, delay) {
|
||||
if (delay === void 0) {
|
||||
delay = 0;
|
||||
}
|
||||
// If delay exists and is greater than 0, or if the delay is null (the
|
||||
// action wasn't rescheduled) but was originally scheduled as an async
|
||||
// action, then recycle as an async action.
|
||||
if ((delay !== null && delay > 0) || (delay === null && this.delay > 0)) {
|
||||
return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);
|
||||
}
|
||||
// If the scheduler queue is empty, cancel the requested microtask and
|
||||
// set the scheduled flag to undefined so the next AsapAction will schedule
|
||||
// its own.
|
||||
if (scheduler.actions.length === 0) {
|
||||
Immediate.clearImmediate(id);
|
||||
scheduler.scheduled = undefined;
|
||||
}
|
||||
// Return undefined so the action knows to request a new async id if it's rescheduled.
|
||||
return undefined;
|
||||
};
|
||||
return AsapAction;
|
||||
}(AsyncAction));
|
||||
//# sourceMappingURL=AsapAction.js.map
|
1
node_modules/rxjs/_esm5/scheduler/AsapAction.js.map
generated
vendored
Normal file
1
node_modules/rxjs/_esm5/scheduler/AsapAction.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"AsapAction.js","sourceRoot":"","sources":["../../src/scheduler/AsapAction.ts"],"names":[],"mappings":";;;;;OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB;OACtC,EAAE,WAAW,EAAE,MAAM,eAAe;AAG3C;;;;GAIG;AACH;IAAmC,8BAAc;IAE/C,oBAAsB,SAAwB,EACxB,IAA8C;QAClE,kBAAM,SAAS,EAAE,IAAI,CAAC,CAAC;QAFH,cAAS,GAAT,SAAS,CAAe;QACxB,SAAI,GAAJ,IAAI,CAA0C;IAEpE,CAAC;IAES,mCAAc,GAAxB,UAAyB,SAAwB,EAAE,EAAQ,EAAE,KAAiB;QAAjB,qBAAiB,GAAjB,SAAiB;QAC5E,0DAA0D;QAC1D,EAAE,CAAC,CAAC,KAAK,KAAK,IAAI,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC;YAChC,MAAM,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Normal file
@ -0,0 +1,38 @@
|
||||
/** PURE_IMPORTS_START ._AsyncScheduler PURE_IMPORTS_END */
|
||||
var __extends = (this && this.__extends) || function (d, b) {
|
||||
for (var p in b)
|
||||
if (b.hasOwnProperty(p))
|
||||
d[p] = b[p];
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
import { AsyncScheduler } from './AsyncScheduler';
|
||||
export var AsapScheduler = /*@__PURE__*/ (/*@__PURE__*/ function (_super) {
|
||||
__extends(AsapScheduler, _super);
|
||||
function AsapScheduler() {
|
||||
_super.apply(this, arguments);
|
||||
}
|
||||
AsapScheduler.prototype.flush = function (action) {
|
||||
this.active = true;
|
||||
this.scheduled = undefined;
|
||||
var actions = this.actions;
|
||||
var error;
|
||||
var index = -1;
|
||||
var count = actions.length;
|
||||
action = action || actions.shift();
|
||||
do {
|
||||
if (error = action.execute(action.state, action.delay)) {
|
||||
break;
|
||||
}
|
||||
} while (++index < count && (action = actions.shift()));
|
||||
this.active = false;
|
||||
if (error) {
|
||||
while (++index < count && (action = actions.shift())) {
|
||||
action.unsubscribe();
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
};
|
||||
return AsapScheduler;
|
||||
}(AsyncScheduler));
|
||||
//# sourceMappingURL=AsapScheduler.js.map
|
1
node_modules/rxjs/_esm5/scheduler/AsapScheduler.js.map
generated
vendored
Normal file
1
node_modules/rxjs/_esm5/scheduler/AsapScheduler.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"AsapScheduler.js","sourceRoot":"","sources":["../../src/scheduler/AsapScheduler.ts"],"names":[],"mappings":";;;;;OACO,EAAE,cAAc,EAAE,MAAM,kBAAkB;AAEjD;IAAmC,iCAAc;IAAjD;QAAmC,8BAAc;IA2BjD,CAAC;IA1BQ,6BAAK,GAAZ,UAAa,MAAyB;QAEpC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACnB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAEpB,0BAAO,CAAS;QACvB,IAAI,KAAU,CAAC;QACf,IAAI,KAAK,GAAW,CAAC,CAAC,CAAC;QACvB,IAAI,KAAK,GAAW,OAAO,CAAC,MAAM,CAAC;QACnC,MAAM,GAAG,MAAM,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC;QAEnC,GAAG,CAAC;YACF,EAAE,CAAC,CAAC,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;gBACvD,KAAK,CAAC;YACR,CAAC;QACH,CAAC,QAAQ,EAAE,KAAK,GAAG,KAAK,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC,EAAE;QAExD,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QAEpB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;YACV,OAAO,EAAE,KAAK,GAAG,KAAK,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC;gBACrD,MAAM,CAAC,WAAW,EAAE,CAAC;YACvB,CAAC;YACD,MAAM,KAAK,CAAC;QACd,CAAC;IACH,CAAC;IACH,oBAAC;AAAD,CAAC,AA3BD,CAAmC,cAAc,GA2BhD"}
|
149
node_modules/rxjs/_esm5/scheduler/AsyncAction.js
generated
vendored
Normal file
149
node_modules/rxjs/_esm5/scheduler/AsyncAction.js
generated
vendored
Normal file
@ -0,0 +1,149 @@
|
||||
/** PURE_IMPORTS_START .._util_root,._Action PURE_IMPORTS_END */
|
||||
var __extends = (this && this.__extends) || function (d, b) {
|
||||
for (var p in b)
|
||||
if (b.hasOwnProperty(p))
|
||||
d[p] = b[p];
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
import { root } from '../util/root';
|
||||
import { Action } from './Action';
|
||||
/**
|
||||
* We need this JSDoc comment for affecting ESDoc.
|
||||
* @ignore
|
||||
* @extends {Ignored}
|
||||
*/
|
||||
export var AsyncAction = /*@__PURE__*/ (/*@__PURE__*/ function (_super) {
|
||||
__extends(AsyncAction, _super);
|
||||
function AsyncAction(scheduler, work) {
|
||||
_super.call(this, scheduler, work);
|
||||
this.scheduler = scheduler;
|
||||
this.pending = false;
|
||||
this.work = work;
|
||||
}
|
||||
AsyncAction.prototype.schedule = function (state, delay) {
|
||||
if (delay === void 0) {
|
||||
delay = 0;
|
||||
}
|
||||
if (this.closed) {
|
||||
return this;
|
||||
}
|
||||
// Always replace the current state with the new state.
|
||||
this.state = state;
|
||||
// Set the pending flag indicating that this action has been scheduled, or
|
||||
// has recursively rescheduled itself.
|
||||
this.pending = true;
|
||||
var id = this.id;
|
||||
var scheduler = this.scheduler;
|
||||
//
|
||||
// Important implementation note:
|
||||
//
|
||||
// Actions only execute once by default, unless rescheduled from within the
|
||||
// scheduled callback. This allows us to implement single and repeat
|
||||
// actions via the same code path, without adding API surface area, as well
|
||||
// as mimic traditional recursion but across asynchronous boundaries.
|
||||
//
|
||||
// However, JS runtimes and timers distinguish between intervals achieved by
|
||||
// serial `setTimeout` calls vs. a single `setInterval` call. An interval of
|
||||
// serial `setTimeout` calls can be individually delayed, which delays
|
||||
// scheduling the next `setTimeout`, and so on. `setInterval` attempts to
|
||||
// guarantee the interval callback will be invoked more precisely to the
|
||||
// interval period, regardless of load.
|
||||
//
|
||||
// Therefore, we use `setInterval` to schedule single and repeat actions.
|
||||
// If the action reschedules itself with the same delay, the interval is not
|
||||
// canceled. If the action doesn't reschedule, or reschedules with a
|
||||
// different delay, the interval will be canceled after scheduled callback
|
||||
// execution.
|
||||
//
|
||||
if (id != null) {
|
||||
this.id = this.recycleAsyncId(scheduler, id, delay);
|
||||
}
|
||||
this.delay = delay;
|
||||
// If this action has already an async Id, don't request a new one.
|
||||
this.id = this.id || this.requestAsyncId(scheduler, this.id, delay);
|
||||
return this;
|
||||
};
|
||||
AsyncAction.prototype.requestAsyncId = function (scheduler, id, delay) {
|
||||
if (delay === void 0) {
|
||||
delay = 0;
|
||||
}
|
||||
return root.setInterval(scheduler.flush.bind(scheduler, this), delay);
|
||||
};
|
||||
AsyncAction.prototype.recycleAsyncId = function (scheduler, id, delay) {
|
||||
if (delay === void 0) {
|
||||
delay = 0;
|
||||
}
|
||||
// If this action is rescheduled with the same delay time, don't clear the interval id.
|
||||
if (delay !== null && this.delay === delay && this.pending === false) {
|
||||
return id;
|
||||
}
|
||||
// Otherwise, if the action's delay time is different from the current delay,
|
||||
// or the action has been rescheduled before it's executed, clear the interval id
|
||||
return root.clearInterval(id) && undefined || undefined;
|
||||
};
|
||||
/**
|
||||
* Immediately executes this action and the `work` it contains.
|
||||
* @return {any}
|
||||
*/
|
||||
AsyncAction.prototype.execute = function (state, delay) {
|
||||
if (this.closed) {
|
||||
return new Error('executing a cancelled action');
|
||||
}
|
||||
this.pending = false;
|
||||
var error = this._execute(state, delay);
|
||||
if (error) {
|
||||
return error;
|
||||
}
|
||||
else if (this.pending === false && this.id != null) {
|
||||
// Dequeue if the action didn't reschedule itself. Don't call
|
||||
// unsubscribe(), because the action could reschedule later.
|
||||
// For example:
|
||||
// ```
|
||||
// scheduler.schedule(function doWork(counter) {
|
||||
// /* ... I'm a busy worker bee ... */
|
||||
// var originalAction = this;
|
||||
// /* wait 100ms before rescheduling the action */
|
||||
// setTimeout(function () {
|
||||
// originalAction.schedule(counter + 1);
|
||||
// }, 100);
|
||||
// }, 1000);
|
||||
// ```
|
||||
this.id = this.recycleAsyncId(this.scheduler, this.id, null);
|
||||
}
|
||||
};
|
||||
AsyncAction.prototype._execute = function (state, delay) {
|
||||
var errored = false;
|
||||
var errorValue = undefined;
|
||||
try {
|
||||
this.work(state);
|
||||
}
|
||||
catch (e) {
|
||||
errored = true;
|
||||
errorValue = !!e && e || new Error(e);
|
||||
}
|
||||
if (errored) {
|
||||
this.unsubscribe();
|
||||
return errorValue;
|
||||
}
|
||||
};
|
||||
/** @deprecated internal use only */ AsyncAction.prototype._unsubscribe = function () {
|
||||
var id = this.id;
|
||||
var scheduler = this.scheduler;
|
||||
var actions = scheduler.actions;
|
||||
var index = actions.indexOf(this);
|
||||
this.work = null;
|
||||
this.state = null;
|
||||
this.pending = false;
|
||||
this.scheduler = null;
|
||||
if (index !== -1) {
|
||||
actions.splice(index, 1);
|
||||
}
|
||||
if (id != null) {
|
||||
this.id = this.recycleAsyncId(scheduler, id, null);
|
||||
}
|
||||
this.delay = null;
|
||||
};
|
||||
return AsyncAction;
|
||||
}(Action));
|
||||
//# sourceMappingURL=AsyncAction.js.map
|
1
node_modules/rxjs/_esm5/scheduler/AsyncAction.js.map
generated
vendored
Normal file
1
node_modules/rxjs/_esm5/scheduler/AsyncAction.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"AsyncAction.js","sourceRoot":"","sources":["../../src/scheduler/AsyncAction.ts"],"names":[],"mappings":";;;;;OAAO,EAAE,IAAI,EAAE,MAAM,cAAc;OAC5B,EAAE,MAAM,EAAE,MAAM,UAAU;AAIjC;;;;GAIG;AACH;IAAoC,+BAAS;IAQ3C,qBAAsB,SAAyB,EACnC,IAA+C;QACzD,kBAAM,SAAS,EAAE,IAAI,CAAC,CAAC;QAFH,cAAS,GAAT,SAAS,CAAgB;QAHrC,YAAO,GAAY,KAAK,CAAC;QAMjC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAEM,8BAAQ,GAAf,UAAgB,KAAS,EAAE,KAAiB;QAAjB,qBAAiB,GAAjB,SAAiB;QAE1C,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;YAChB,MAAM,CAAC,IAAI,CAAC;QACb,CAAC;QAEF,uDAAuD;QACvD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QAEnB,0EAA0E;QAC1E,sCAAsC;QACtC,IAAI,CAAC,OAAO,GAAG,IAA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Scheduler.js
generated
vendored
Normal file
@ -0,0 +1,52 @@
|
||||
/** PURE_IMPORTS_START .._Scheduler PURE_IMPORTS_END */
|
||||
var __extends = (this && this.__extends) || function (d, b) {
|
||||
for (var p in b)
|
||||
if (b.hasOwnProperty(p))
|
||||
d[p] = b[p];
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
import { Scheduler } from '../Scheduler';
|
||||
export var AsyncScheduler = /*@__PURE__*/ (/*@__PURE__*/ function (_super) {
|
||||
__extends(AsyncScheduler, _super);
|
||||
function AsyncScheduler() {
|
||||
_super.apply(this, arguments);
|
||||
this.actions = [];
|
||||
/**
|
||||
* A flag to indicate whether the Scheduler is currently executing a batch of
|
||||
* queued actions.
|
||||
* @type {boolean}
|
||||
*/
|
||||
this.active = false;
|
||||
/**
|
||||
* An internal ID used to track the latest asynchronous task such as those
|
||||
* coming from `setTimeout`, `setInterval`, `requestAnimationFrame`, and
|
||||
* others.
|
||||
* @type {any}
|
||||
*/
|
||||
this.scheduled = undefined;
|
||||
}
|
||||
AsyncScheduler.prototype.flush = function (action) {
|
||||
var actions = this.actions;
|
||||
if (this.active) {
|
||||
actions.push(action);
|
||||
return;
|
||||
}
|
||||
var error;
|
||||
this.active = true;
|
||||
do {
|
||||
if (error = action.execute(action.state, action.delay)) {
|
||||
break;
|
||||
}
|
||||
} while (action = actions.shift()); // exhaust the scheduler queue
|
||||
this.active = false;
|
||||
if (error) {
|
||||
while (action = actions.shift()) {
|
||||
action.unsubscribe();
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
};
|
||||
return AsyncScheduler;
|
||||
}(Scheduler));
|
||||
//# sourceMappingURL=AsyncScheduler.js.map
|
1
node_modules/rxjs/_esm5/scheduler/AsyncScheduler.js.map
generated
vendored
Normal file
1
node_modules/rxjs/_esm5/scheduler/AsyncScheduler.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"AsyncScheduler.js","sourceRoot":"","sources":["../../src/scheduler/AsyncScheduler.ts"],"names":[],"mappings":";;;;;OAAO,EAAE,SAAS,EAAE,MAAM,cAAc;AAGxC;IAAoC,kCAAS;IAA7C;QAAoC,8BAAS;QACpC,YAAO,GAA4B,EAAE,CAAC;QAC7C;;;;WAIG;QACI,WAAM,GAAY,KAAK,CAAC;QAC/B;;;;;WAKG;QACI,cAAS,GAAQ,SAAS,CAAC;IA6BpC,CAAC;IA3BQ,8BAAK,GAAZ,UAAa,MAAwB;QAE5B,0BAAO,CAAS;QAEvB,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;YAChB,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACrB,MAAM,CAAC;QACT,CAAC;QAED,IAAI,KAAU,CAAC;QACf,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QAEnB,GAAG,CAAC;YACF,EAAE,CAAC,CAAC,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;gBACvD,KAAK,CAAC;YACR,CAAC;QACH,CAAC,QAAQ,MAAM,GAAG,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,8BAA8B;QAElE,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QAEpB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;YACV,OAAO,MAAM,GAAG,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC;gBAChC,MAAM,CAAC,WAAW,EAAE,CAAC;YACvB,CAAC;YACD,MAAM,KAAK,CAAC;QACd,CAAC;IACH,CAAC;IACH,qBAAC;AAAD,CAAC,AA3CD,CAAoC,SAAS,GA2C5C"}
|
54
node_modules/rxjs/_esm5/scheduler/QueueAction.js
generated
vendored
Normal file
54
node_modules/rxjs/_esm5/scheduler/QueueAction.js
generated
vendored
Normal file
@ -0,0 +1,54 @@
|
||||
/** PURE_IMPORTS_START ._AsyncAction PURE_IMPORTS_END */
|
||||
var __extends = (this && this.__extends) || function (d, b) {
|
||||
for (var p in b)
|
||||
if (b.hasOwnProperty(p))
|
||||
d[p] = b[p];
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
import { AsyncAction } from './AsyncAction';
|
||||
/**
|
||||
* We need this JSDoc comment for affecting ESDoc.
|
||||
* @ignore
|
||||
* @extends {Ignored}
|
||||
*/
|
||||
export var QueueAction = /*@__PURE__*/ (/*@__PURE__*/ function (_super) {
|
||||
__extends(QueueAction, _super);
|
||||
function QueueAction(scheduler, work) {
|
||||
_super.call(this, scheduler, work);
|
||||
this.scheduler = scheduler;
|
||||
this.work = work;
|
||||
}
|
||||
QueueAction.prototype.schedule = function (state, delay) {
|
||||
if (delay === void 0) {
|
||||
delay = 0;
|
||||
}
|
||||
if (delay > 0) {
|
||||
return _super.prototype.schedule.call(this, state, delay);
|
||||
}
|
||||
this.delay = delay;
|
||||
this.state = state;
|
||||
this.scheduler.flush(this);
|
||||
return this;
|
||||
};
|
||||
QueueAction.prototype.execute = function (state, delay) {
|
||||
return (delay > 0 || this.closed) ?
|
||||
_super.prototype.execute.call(this, state, delay) :
|
||||
this._execute(state, delay);
|
||||
};
|
||||
QueueAction.prototype.requestAsyncId = function (scheduler, id, delay) {
|
||||
if (delay === void 0) {
|
||||
delay = 0;
|
||||
}
|
||||
// If delay exists and is greater than 0, or if the delay is null (the
|
||||
// action wasn't rescheduled) but was originally scheduled as an async
|
||||
// action, then recycle as an async action.
|
||||
if ((delay !== null && delay > 0) || (delay === null && this.delay > 0)) {
|
||||
return _super.prototype.requestAsyncId.call(this, scheduler, id, delay);
|
||||
}
|
||||
// Otherwise flush the scheduler starting with this action.
|
||||
return scheduler.flush(this);
|
||||
};
|
||||
return QueueAction;
|
||||
}(AsyncAction));
|
||||
//# sourceMappingURL=QueueAction.js.map
|
1
node_modules/rxjs/_esm5/scheduler/QueueAction.js.map
generated
vendored
Normal file
1
node_modules/rxjs/_esm5/scheduler/QueueAction.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"QueueAction.js","sourceRoot":"","sources":["../../src/scheduler/QueueAction.ts"],"names":[],"mappings":";;;;;OAAO,EAAE,WAAW,EAAE,MAAM,eAAe;AAI3C;;;;GAIG;AACH;IAAoC,+BAAc;IAEhD,qBAAsB,SAAyB,EACzB,IAA+C;QACnE,kBAAM,SAAS,EAAE,IAAI,CAAC,CAAC;QAFH,cAAS,GAAT,SAAS,CAAgB;QACzB,SAAI,GAAJ,IAAI,CAA2C;IAErE,CAAC;IAEM,8BAAQ,GAAf,UAAgB,KAAS,EAAE,KAAiB;QAAjB,qBAAiB,GAAjB,SAAiB;QAC1C,EAAE,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC;YACd,MAAM,CAAC,gBAAK,CAAC,QAAQ,YAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QACtC,CAAC;QACD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC3B,MAAM,CAAC,IAAI,CAAC;IACd,CAAC;IAEM,6BAAO,GAAd,UAAe,KAAQ,EAAE,KAAa;QACpC,MAAM,CAAC,CAAC,KAAK,GAAG,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC;YAC/B,gBAAK,CAAC,OAAO,YAAC,KAAK,EAAE,KAAK,CAAC;YAC3B,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAE;IACjC,CAAC;IAES,oCAAc,GAAxB,UAAyB,SAAyB,EAAE,EAAQ,EAAE,KAAiB;QAAjB,qBAAiB,GAAjB,SAAiB;QAC7E,sEAAsE;QACtE,sEAAsE;QACtE,2CAA2C;QAC3C,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,IAAI,IAAI,KAAK,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,KAAK,IAAI,IAAI,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;YACxE,MAAM,CAAC,gBAAK,CAAC,cAAc,YAAC,SAAS,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;QACpD,CAAC;QACD,2DAA2D;QAC3D,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IACH,kBAAC;AAAD,CAAC,AAjCD,CAAoC,WAAW,GAiC9C"}
|
17
node_modules/rxjs/_esm5/scheduler/QueueScheduler.js
generated
vendored
Normal file
17
node_modules/rxjs/_esm5/scheduler/QueueScheduler.js
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
/** PURE_IMPORTS_START ._AsyncScheduler PURE_IMPORTS_END */
|
||||
var __extends = (this && this.__extends) || function (d, b) {
|
||||
for (var p in b)
|
||||
if (b.hasOwnProperty(p))
|
||||
d[p] = b[p];
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
import { AsyncScheduler } from './AsyncScheduler';
|
||||
export var QueueScheduler = /*@__PURE__*/ (/*@__PURE__*/ function (_super) {
|
||||
__extends(QueueScheduler, _super);
|
||||
function QueueScheduler() {
|
||||
_super.apply(this, arguments);
|
||||
}
|
||||
return QueueScheduler;
|
||||
}(AsyncScheduler));
|
||||
//# sourceMappingURL=QueueScheduler.js.map
|
1
node_modules/rxjs/_esm5/scheduler/QueueScheduler.js.map
generated
vendored
Normal file
1
node_modules/rxjs/_esm5/scheduler/QueueScheduler.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"QueueScheduler.js","sourceRoot":"","sources":["../../src/scheduler/QueueScheduler.ts"],"names":[],"mappings":";;;;;OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB;AAEjD;IAAoC,kCAAc;IAAlD;QAAoC,8BAAc;IAClD,CAAC;IAAD,qBAAC;AAAD,CAAC,AADD,CAAoC,cAAc,GACjD"}
|
125
node_modules/rxjs/_esm5/scheduler/VirtualTimeScheduler.js
generated
vendored
Normal file
125
node_modules/rxjs/_esm5/scheduler/VirtualTimeScheduler.js
generated
vendored
Normal file
@ -0,0 +1,125 @@
|
||||
/** PURE_IMPORTS_START ._AsyncAction,._AsyncScheduler PURE_IMPORTS_END */
|
||||
var __extends = (this && this.__extends) || function (d, b) {
|
||||
for (var p in b)
|
||||
if (b.hasOwnProperty(p))
|
||||
d[p] = b[p];
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
import { AsyncAction } from './AsyncAction';
|
||||
import { AsyncScheduler } from './AsyncScheduler';
|
||||
export var VirtualTimeScheduler = /*@__PURE__*/ (/*@__PURE__*/ function (_super) {
|
||||
__extends(VirtualTimeScheduler, _super);
|
||||
function VirtualTimeScheduler(SchedulerAction, maxFrames) {
|
||||
var _this = this;
|
||||
if (SchedulerAction === void 0) {
|
||||
SchedulerAction = VirtualAction;
|
||||
}
|
||||
if (maxFrames === void 0) {
|
||||
maxFrames = Number.POSITIVE_INFINITY;
|
||||
}
|
||||
_super.call(this, SchedulerAction, function () { return _this.frame; });
|
||||
this.maxFrames = maxFrames;
|
||||
this.frame = 0;
|
||||
this.index = -1;
|
||||
}
|
||||
/**
|
||||
* Prompt the Scheduler to execute all of its queued actions, therefore
|
||||
* clearing its queue.
|
||||
* @return {void}
|
||||
*/
|
||||
VirtualTimeScheduler.prototype.flush = function () {
|
||||
var _a = this, actions = _a.actions, maxFrames = _a.maxFrames;
|
||||
var error, action;
|
||||
while ((action = actions.shift()) && (this.frame = action.delay) <= maxFrames) {
|
||||
if (error = action.execute(action.state, action.delay)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (error) {
|
||||
while (action = actions.shift()) {
|
||||
action.unsubscribe();
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
};
|
||||
VirtualTimeScheduler.frameTimeFactor = 10;
|
||||
return VirtualTimeScheduler;
|
||||
}(AsyncScheduler));
|
||||
/**
|
||||
* We need this JSDoc comment for affecting ESDoc.
|
||||
* @ignore
|
||||
* @extends {Ignored}
|
||||
*/
|
||||
export var VirtualAction = /*@__PURE__*/ (/*@__PURE__*/ function (_super) {
|
||||
__extends(VirtualAction, _super);
|
||||
function VirtualAction(scheduler, work, index) {
|
||||
if (index === void 0) {
|
||||
index = scheduler.index += 1;
|
||||
}
|
||||
_super.call(this, scheduler, work);
|
||||
this.scheduler = scheduler;
|
||||
this.work = work;
|
||||
this.index = index;
|
||||
this.active = true;
|
||||
this.index = scheduler.index = index;
|
||||
}
|
||||
VirtualAction.prototype.schedule = function (state, delay) {
|
||||
if (delay === void 0) {
|
||||
delay = 0;
|
||||
}
|
||||
if (!this.id) {
|
||||
return _super.prototype.schedule.call(this, state, delay);
|
||||
}
|
||||
this.active = false;
|
||||
// If an action is rescheduled, we save allocations by mutating its state,
|
||||
// pushing it to the end of the scheduler queue, and recycling the action.
|
||||
// But since the VirtualTimeScheduler is used for testing, VirtualActions
|
||||
// must be immutable so they can be inspected later.
|
||||
var action = new VirtualAction(this.scheduler, this.work);
|
||||
this.add(action);
|
||||
return action.schedule(state, delay);
|
||||
};
|
||||
VirtualAction.prototype.requestAsyncId = function (scheduler, id, delay) {
|
||||
if (delay === void 0) {
|
||||
delay = 0;
|
||||
}
|
||||
this.delay = scheduler.frame + delay;
|
||||
var actions = scheduler.actions;
|
||||
actions.push(this);
|
||||
actions.sort(VirtualAction.sortActions);
|
||||
return true;
|
||||
};
|
||||
VirtualAction.prototype.recycleAsyncId = function (scheduler, id, delay) {
|
||||
if (delay === void 0) {
|
||||
delay = 0;
|
||||
}
|
||||
return undefined;
|
||||
};
|
||||
VirtualAction.prototype._execute = function (state, delay) {
|
||||
if (this.active === true) {
|
||||
return _super.prototype._execute.call(this, state, delay);
|
||||
}
|
||||
};
|
||||
VirtualAction.sortActions = function (a, b) {
|
||||
if (a.delay === b.delay) {
|
||||
if (a.index === b.index) {
|
||||
return 0;
|
||||
}
|
||||
else if (a.index > b.index) {
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
else if (a.delay > b.delay) {
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
return -1;
|
||||
}
|
||||
};
|
||||
return VirtualAction;
|
||||
}(AsyncAction));
|
||||
//# sourceMappingURL=VirtualTimeScheduler.js.map
|
1
node_modules/rxjs/_esm5/scheduler/VirtualTimeScheduler.js.map
generated
vendored
Normal file
1
node_modules/rxjs/_esm5/scheduler/VirtualTimeScheduler.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"VirtualTimeScheduler.js","sourceRoot":"","sources":["../../src/scheduler/VirtualTimeScheduler.ts"],"names":[],"mappings":";;;;;OAAO,EAAE,WAAW,EAAE,MAAM,eAAe;OAEpC,EAAE,cAAc,EAAE,MAAM,kBAAkB;AAEjD;IAA0C,wCAAc;IAOtD,8BAAY,eAAmD,EAC5C,SAA4C;QARjE,iBAmCC;QA5Ba,+BAAmD,GAAnD,+BAAmD;QACnD,yBAAmD,GAAnD,YAA2B,MAAM,CAAC,iBAAiB;QAC7D,kBAAM,eAAe,EAAE,cAAM,OAAA,KAAI,CAAC,KAAK,EAAV,CAAU,CAAC,CAAC;QADxB,cAAS,GAAT,SAAS,CAAmC;QAJxD,UAAK,GAAW,CAAC,CAAC;QAClB,UAAK,GAAW,CAAC,CAAC,CAAC;IAK1B,CAAC;IAED;;;;OAIG;IACI,oCAAK,GAAZ;QAEE,IAAA,SAAiC,EAA1B,oBAAO,EAAE,wBAAS,CAAS;QAClC,IAAI,KAAU,EAAE,MAAwB,CAAC;QAEzC,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,KA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G,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;gBAC7B,MAAM,CAAC,CAAC,CAAC;YACX,CAAC;YAAC,IAAI,CAAC,CAAC;gBACN,MAAM,CAAC,CAAC,CAAC,CAAC;YACZ,CAAC;QACH,CAAC;QAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;YAC7B,MAAM,CAAC,CAAC,CAAC;QACX,CAAC;QAAC,IAAI,CAAC,CAAC;YACN,MAAM,CAAC,CAAC,CAAC,CAAC;QACZ,CAAC;IACH,CAAC;IACH,oBAAC;AAAD,CAAC,AA1DD,CAAsC,WAAW,GA0DhD"}
|
35
node_modules/rxjs/_esm5/scheduler/animationFrame.js
generated
vendored
Normal file
35
node_modules/rxjs/_esm5/scheduler/animationFrame.js
generated
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
/** PURE_IMPORTS_START ._AnimationFrameAction,._AnimationFrameScheduler PURE_IMPORTS_END */
|
||||
import { AnimationFrameAction } from './AnimationFrameAction';
|
||||
import { AnimationFrameScheduler } from './AnimationFrameScheduler';
|
||||
/**
|
||||
*
|
||||
* Animation Frame Scheduler
|
||||
*
|
||||
* <span class="informal">Perform task when `window.requestAnimationFrame` would fire</span>
|
||||
*
|
||||
* When `animationFrame` scheduler is used with delay, it will fall back to {@link async} scheduler
|
||||
* behaviour.
|
||||
*
|
||||
* Without delay, `animationFrame` scheduler can be used to create smooth browser animations.
|
||||
* It makes sure scheduled task will happen just before next browser content repaint,
|
||||
* thus performing animations as efficiently as possible.
|
||||
*
|
||||
* @example <caption>Schedule div height animation</caption>
|
||||
* const div = document.querySelector('.some-div');
|
||||
*
|
||||
* Rx.Scheduler.schedule(function(height) {
|
||||
* div.style.height = height + "px";
|
||||
*
|
||||
* this.schedule(height + 1); // `this` references currently executing Action,
|
||||
* // which we reschedule with new state
|
||||
* }, 0, 0);
|
||||
*
|
||||
* // You will see .some-div element growing in height
|
||||
*
|
||||
*
|
||||
* @static true
|
||||
* @name animationFrame
|
||||
* @owner Scheduler
|
||||
*/
|
||||
export var animationFrame = /*@__PURE__*/ new AnimationFrameScheduler(AnimationFrameAction);
|
||||
//# sourceMappingURL=animationFrame.js.map
|
1
node_modules/rxjs/_esm5/scheduler/animationFrame.js.map
generated
vendored
Normal file
1
node_modules/rxjs/_esm5/scheduler/animationFrame.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"animationFrame.js","sourceRoot":"","sources":["../../src/scheduler/animationFrame.ts"],"names":[],"mappings":"OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB;OACtD,EAAE,uBAAuB,EAAE,MAAM,2BAA2B;AAEnE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,IAAM,cAAc,GAAG,IAAI,uBAAuB,CAAC,oBAAoB,CAAC,CAAC"}
|
39
node_modules/rxjs/_esm5/scheduler/asap.js
generated
vendored
Normal file
39
node_modules/rxjs/_esm5/scheduler/asap.js
generated
vendored
Normal file
@ -0,0 +1,39 @@
|
||||
/** PURE_IMPORTS_START ._AsapAction,._AsapScheduler PURE_IMPORTS_END */
|
||||
import { AsapAction } from './AsapAction';
|
||||
import { AsapScheduler } from './AsapScheduler';
|
||||
/**
|
||||
*
|
||||
* Asap Scheduler
|
||||
*
|
||||
* <span class="informal">Perform task as fast as it can be performed asynchronously</span>
|
||||
*
|
||||
* `asap` scheduler behaves the same as {@link async} scheduler when you use it to delay task
|
||||
* in time. If however you set delay to `0`, `asap` will wait for current synchronously executing
|
||||
* code to end and then it will try to execute given task as fast as possible.
|
||||
*
|
||||
* `asap` scheduler will do its best to minimize time between end of currently executing code
|
||||
* and start of scheduled task. This makes it best candidate for performing so called "deferring".
|
||||
* Traditionally this was achieved by calling `setTimeout(deferredTask, 0)`, but that technique involves
|
||||
* some (although minimal) unwanted delay.
|
||||
*
|
||||
* Note that using `asap` scheduler does not necessarily mean that your task will be first to process
|
||||
* after currently executing code. In particular, if some task was also scheduled with `asap` before,
|
||||
* that task will execute first. That being said, if you need to schedule task asynchronously, but
|
||||
* as soon as possible, `asap` scheduler is your best bet.
|
||||
*
|
||||
* @example <caption>Compare async and asap scheduler</caption>
|
||||
*
|
||||
* Rx.Scheduler.async.schedule(() => console.log('async')); // scheduling 'async' first...
|
||||
* Rx.Scheduler.asap.schedule(() => console.log('asap'));
|
||||
*
|
||||
* // Logs:
|
||||
* // "asap"
|
||||
* // "async"
|
||||
* // ... but 'asap' goes first!
|
||||
*
|
||||
* @static true
|
||||
* @name asap
|
||||
* @owner Scheduler
|
||||
*/
|
||||
export var asap = /*@__PURE__*/ new AsapScheduler(AsapAction);
|
||||
//# sourceMappingURL=asap.js.map
|
1
node_modules/rxjs/_esm5/scheduler/asap.js.map
generated
vendored
Normal file
1
node_modules/rxjs/_esm5/scheduler/asap.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"asap.js","sourceRoot":"","sources":["../../src/scheduler/asap.ts"],"names":[],"mappings":"OAAO,EAAE,UAAU,EAAE,MAAM,cAAc;OAClC,EAAE,aAAa,EAAE,MAAM,iBAAiB;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,OAAO,IAAM,IAAI,GAAG,IAAI,aAAa,CAAC,UAAU,CAAC,CAAC"}
|
47
node_modules/rxjs/_esm5/scheduler/async.js
generated
vendored
Normal file
47
node_modules/rxjs/_esm5/scheduler/async.js
generated
vendored
Normal file
@ -0,0 +1,47 @@
|
||||
/** PURE_IMPORTS_START ._AsyncAction,._AsyncScheduler PURE_IMPORTS_END */
|
||||
import { AsyncAction } from './AsyncAction';
|
||||
import { AsyncScheduler } from './AsyncScheduler';
|
||||
/**
|
||||
*
|
||||
* Async Scheduler
|
||||
*
|
||||
* <span class="informal">Schedule task as if you used setTimeout(task, duration)</span>
|
||||
*
|
||||
* `async` scheduler schedules tasks asynchronously, by putting them on the JavaScript
|
||||
* event loop queue. It is best used to delay tasks in time or to schedule tasks repeating
|
||||
* in intervals.
|
||||
*
|
||||
* If you just want to "defer" task, that is to perform it right after currently
|
||||
* executing synchronous code ends (commonly achieved by `setTimeout(deferredTask, 0)`),
|
||||
* better choice will be the {@link asap} scheduler.
|
||||
*
|
||||
* @example <caption>Use async scheduler to delay task</caption>
|
||||
* const task = () => console.log('it works!');
|
||||
*
|
||||
* Rx.Scheduler.async.schedule(task, 2000);
|
||||
*
|
||||
* // After 2 seconds logs:
|
||||
* // "it works!"
|
||||
*
|
||||
*
|
||||
* @example <caption>Use async scheduler to repeat task in intervals</caption>
|
||||
* function task(state) {
|
||||
* console.log(state);
|
||||
* this.schedule(state + 1, 1000); // `this` references currently executing Action,
|
||||
* // which we reschedule with new state and delay
|
||||
* }
|
||||
*
|
||||
* Rx.Scheduler.async.schedule(task, 3000, 0);
|
||||
*
|
||||
* // Logs:
|
||||
* // 0 after 3s
|
||||
* // 1 after 4s
|
||||
* // 2 after 5s
|
||||
* // 3 after 6s
|
||||
*
|
||||
* @static true
|
||||
* @name async
|
||||
* @owner Scheduler
|
||||
*/
|
||||
export var async = /*@__PURE__*/ new AsyncScheduler(AsyncAction);
|
||||
//# sourceMappingURL=async.js.map
|
1
node_modules/rxjs/_esm5/scheduler/async.js.map
generated
vendored
Normal file
1
node_modules/rxjs/_esm5/scheduler/async.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"async.js","sourceRoot":"","sources":["../../src/scheduler/async.ts"],"names":[],"mappings":"OAAO,EAAE,WAAW,EAAE,MAAM,eAAe;OACpC,EAAE,cAAc,EAAE,MAAM,kBAAkB;AAEjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAEH,OAAO,IAAM,KAAK,GAAG,IAAI,cAAc,CAAC,WAAW,CAAC,CAAC"}
|
66
node_modules/rxjs/_esm5/scheduler/queue.js
generated
vendored
Normal file
66
node_modules/rxjs/_esm5/scheduler/queue.js
generated
vendored
Normal file
@ -0,0 +1,66 @@
|
||||
/** PURE_IMPORTS_START ._QueueAction,._QueueScheduler PURE_IMPORTS_END */
|
||||
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 var queue = /*@__PURE__*/ new QueueScheduler(QueueAction);
|
||||
//# sourceMappingURL=queue.js.map
|
1
node_modules/rxjs/_esm5/scheduler/queue.js.map
generated
vendored
Normal file
1
node_modules/rxjs/_esm5/scheduler/queue.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"queue.js","sourceRoot":"","sources":["../../src/scheduler/queue.ts"],"names":[],"mappings":"OAAO,EAAE,WAAW,EAAE,MAAM,eAAe;OACpC,EAAE,cAAc,EAAE,MAAM,kBAAkB;AAEjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AAEH,OAAO,IAAM,KAAK,GAAG,IAAI,cAAc,CAAC,WAAW,CAAC,CAAC"}
|
Reference in New Issue
Block a user