MockDeltaQueue Class
Mock implementation of IDeltaQueue for testing that does nothing
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
For more information about our API support guarantees, see here.
Signature
constructor();
Property Details
disposed
For more information about our API support guarantees, see here.
Signature
get disposed(): any;
Type: any
idle
For more information about our API support guarantees, see here.
Signature
get idle(): boolean;
Type: boolean
length
For more information about our API support guarantees, see here.
Signature
get length(): number;
Type: number
pauseCount
For more information about our API support guarantees, see here.
Signature
protected pauseCount: number;
Type: number
paused
For more information about our API support guarantees, see here.
Signature
get paused(): boolean;
Type: boolean
processCallback
For more information about our API support guarantees, see here.
Signature
processCallback: (el: T) => void;
Type: (el: T) => void
queue
For more information about our API support guarantees, see here.
Signature
protected readonly queue: T[];
Type: T[]