AxManualEventClock Generated TypeScript API reference. typescript api api/reference build/apidocs/Class.AxManualEventClock.md class AxManualEventClock

AxManualEventClock

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/event/types.ts#L85

Deterministic clock for conformance tests, replay, and host schedulers.

Implements

Constructors

Constructor

TypeScript
new AxManualEventClock(value: number): AxManualEventClock;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/event/types.ts#L92

Parameters

ParameterTypeDefault value
valuenumber0

Returns

AxManualEventClock

Methods

advanceBy()

TypeScript
advanceBy(ms: number): void;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/event/types.ts#L115

Parameters

ParameterType
msnumber

Returns

void


now()

TypeScript
now(): number;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/event/types.ts#L94

Returns

number

Implementation of

AxEventClock.now


set()

TypeScript
set(time: number): void;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/event/types.ts#L127

Parameters

ParameterType
timenumber

Returns

void


sleep()

TypeScript
sleep(ms: number, signal?: AbortSignal): Promise<void>;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/event/types.ts#L98

Parameters

ParameterType
msnumber
signal?AbortSignal

Returns

Promise<void>

Implementation of

AxEventClock.sleep

Docs