An open API service indexing awesome lists of open source software.

https://github.com/baguilar6174/react-ts-queue-app

Implementation of the queue data structure, using Typescript.
https://github.com/baguilar6174/react-ts-queue-app

data-structures queue typescript

Last synced: 5 months ago
JSON representation

Implementation of the queue data structure, using Typescript.

Awesome Lists containing this project

README

          

# Data structure Queue

Implementation of the queue data structure, using Typescript.



## Usage

```typescript
async function worker(amount: number, done: (result: number) => void) {
const result = await updateAmount(amount); // For exmaple API call
done(result);
}

const updateAmountQueued = Queue(worker);

updateAmountQueued(amount * multiplier, function callback(result) {
// Your result in result variable
});
```