Skip to main content

MockDeltaQueue Class

Mock implementation of IDeltaQueue for testing that does nothing

This API is provided for existing users, but is not recommended for new users.

To use, import via @fluidframework/test-runtime-utils/legacy.

For more information about our API support guarantees, see here.

Signature

export declare class MockDeltaQueue<T> extends EventEmitter implements IDeltaQueue<T>

Extends: EventEmitter

Implements: IDeltaQueue<T>

Type Parameters

Parameter Description
T

Constructors

Constructor Alerts Description
(constructor)() Alpha Constructs a new instance of the MockDeltaQueue class

Properties

Property Alerts Modifiers Type Description
disposed Alpha readonly any
idle Alpha readonly boolean
length Alpha readonly number
pauseCount Alpha number
paused Alpha readonly boolean
processCallback Alpha (el: T) => void
queue Alpha readonly T[]

Constructor Details

(constructor)

Constructs a new instance of the MockDeltaQueue class

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

constructor();

Property Details

disposed

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

get disposed(): any;

Type: any

idle

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

get idle(): boolean;

Type: boolean

length

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

get length(): number;

Type: number

pauseCount

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

protected pauseCount: number;

Type: number

paused

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

get paused(): boolean;

Type: boolean

processCallback

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

processCallback: (el: T) => void;

Type: (el: T) => void

queue

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

protected readonly queue: T[];

Type: T[]