Constructors
constructor
- new Queue(): Queue
Methods
clear
- clear(): void
Returns void
getState
- getState(): QueueItem[]
processAck
- processAck(id): void
Returns void
processError
- processError(e): void
Returns void
processQueue
- processQueue(writeToRadio): Promise<void>
Parameters
- writeToRadio: ((data: Uint8Array) => Promise<void>)
- (data): Promise<void>
Returns Promise<void>
Returns Promise<void>
push
- push(item): void
Parameters
- item: Omit<QueueItem, "promise" | "sent" | "added">
Returns void
remove
- remove(id): void
Returns void
wait
- wait(id): Promise<number>
Returns Promise<number>