1
>
/*---------------------------------------------------------------------------------------------
timeTravelScheduler.ts
2
>
* Copyright (c) Microsoft Corporation. All rights reserved.
3
>
* Licensed under the MIT License. See License.txt in the project root for license information.
4
>
*--------------------------------------------------------------------------------------------*/
5
>
6
>
/**
7
>
* @deprecated The contents of this file have moved to
8
>
* `./virtualScheduling/index.js`. This re-export is kept for backwards
9
>
* compatibility and will be removed once all callers have migrated.
10
>
*
11
>
* Notes for migration:
12
>
* - `TimeTravelScheduler` is now {@link VirtualClock} (same constructor).
13
>
* - `AsyncSchedulerProcessor` is now {@link VirtualTimeProcessor}; its
14
>
* constructor takes an explicit {@link Embedding}, and {@link Run.options}
15
>
* use `until` (a {@link TerminationPolicy}) instead of the implicit
16
>
* "drain queue" behaviour. See {@link runWithFakedTimers} for a
17
>
* drop-in helper.
18
>
* - `originalGlobalValues` is now {@link realTimeApi}.
19
>
*/
20
>
21
>
export {
22
>
captureGlobalTimeApi,
23
>
createLoggingTimeApi,
24
>
createVirtualTimeApi,
25
>
pushGlobalTimeApi,
26
>
realTimeApi as originalGlobalValues,
27
>
runWithFakedTimers,
28
>
VirtualClock as TimeTravelScheduler,
29
>
} from './virtualScheduling/index.js';
30
>
31
>
export type {
32
>
CreateVirtualTimeApiOptions,
33
>
RunWithFakedTimersOptions,
34
>
TimeApi,
35
>
} from './virtualScheduling/index.js';