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 asyncScheduler} 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 * Compare async and asap scheduler< * ```ts * import { asapScheduler, asyncScheduler } from 'rxjs'; * * asyncScheduler.schedule(() => console.log('async')); // scheduling 'async' first... * asapScheduler.schedule(() => console.log('asap')); * * // Logs: * // "asap" * // "async" * // ... but 'asap' goes first! * ``` */ export declare const asapScheduler: AsapScheduler; /** * @deprecated renamed. Use {@link asapScheduler} */ export declare const asap: AsapScheduler;
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 |
|