import { Scheduler } from '../Scheduler'; import { Subscription } from '../Subscription'; import { SchedulerAction } from '../types'; /** * A unit of work to be executed in a `scheduler`. An action is typically * created from within a {@link SchedulerLike} 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 declare class Action<T> extends Subscription { constructor(scheduler: Scheduler, work: (this: SchedulerAction<T>, state?: T) => void); /** * Schedules this action on its parent {@link SchedulerLike} 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} */ schedule(state?: T, delay?: number): Subscription; }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Action.d.ts | File | 1.26 KB | 0644 |
|
Action.js | File | 1.08 KB | 0644 |
|
Action.js.map | File | 356 B | 0644 |
|
AnimationFrameAction.d.ts | File | 739 B | 0644 |
|
AnimationFrameAction.js | File | 2.05 KB | 0644 |
|
AnimationFrameAction.js.map | File | 1.16 KB | 0644 |
|
AnimationFrameScheduler.d.ts | File | 212 B | 0644 |
|
AnimationFrameScheduler.js | File | 1.76 KB | 0644 |
|
AnimationFrameScheduler.js.map | File | 939 B | 0644 |
|
AsapAction.d.ts | File | 669 B | 0644 |
|
AsapAction.js | File | 2.03 KB | 0644 |
|
AsapAction.js.map | File | 1.17 KB | 0644 |
|
AsapScheduler.d.ts | File | 202 B | 0644 |
|
AsapScheduler.js | File | 1.68 KB | 0644 |
|
AsapScheduler.js.map | File | 918 B | 0644 |
|
AsyncAction.d.ts | File | 1.12 KB | 0644 |
|
AsyncAction.js | File | 3.44 KB | 0644 |
|
AsyncAction.js.map | File | 2.73 KB | 0644 |
|
AsyncScheduler.d.ts | File | 1.01 KB | 0644 |
|
AsyncScheduler.js | File | 2.38 KB | 0644 |
|
AsyncScheduler.js.map | File | 1.38 KB | 0644 |
|
QueueAction.d.ts | File | 734 B | 0644 |
|
QueueAction.js | File | 1.96 KB | 0644 |
|
QueueAction.js.map | File | 1.17 KB | 0644 |
|
QueueScheduler.d.ts | File | 114 B | 0644 |
|
QueueScheduler.js | File | 1.03 KB | 0644 |
|
QueueScheduler.js.map | File | 243 B | 0644 |
|
VirtualTimeScheduler.d.ts | File | 1.37 KB | 0644 |
|
VirtualTimeScheduler.js | File | 4.03 KB | 0644 |
|
VirtualTimeScheduler.js.map | File | 2.69 KB | 0644 |
|
animationFrame.d.ts | File | 1.28 KB | 0644 |
|
animationFrame.js | File | 445 B | 0644 |
|
animationFrame.js.map | File | 244 B | 0644 |
|
asap.d.ts | File | 1.62 KB | 0644 |
|
asap.js | File | 325 B | 0644 |
|
asap.js.map | File | 219 B | 0644 |
|
async.d.ts | File | 1.45 KB | 0644 |
|
async.js | File | 337 B | 0644 |
|
async.js.map | File | 221 B | 0644 |
|
queue.d.ts | File | 1.98 KB | 0644 |
|
queue.js | File | 337 B | 0644 |
|
queue.js.map | File | 221 B | 0644 |
|