Constructors
constructor
Parameters
callback: function
( value: T ) : void | Promise < void >
Parameters
Returns void
|
Promise < void >
Properties
Private callback
callback: function
Type declaration
( value: T ) : void | Promise < void >
Parameters
Returns void
|
Promise < void >
Private nextExpected
nextExpected: number
Private onHold
onHold: object
Methods
call
call( value: T , sequence: number | null ) : void
Parameters
value: T
sequence: number | null
Returns void
Private tryDispatchInOrder
tryDispatchInOrder( ) : void
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method
A sliding window reordering helper class.
This class takes tuples (value, sequence_number) and a callback that should be called as
callback(value)but in order of sequence_number. If a sequence number is received out of order, it puts it into a holding list to be dispatched at the appropriate time.