Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Max Queue Size, Explicit Queue Type, Updated Docs #5

Merged
merged 3 commits into from Jan 5, 2022

Conversation

jgmcelwain
Copy link
Owner

@jgmcelwain jgmcelwain commented Jan 5, 2022

Max Queue Size

const queue = new Qewe({ maximumQueueSize: 3 });

queue.enqueue('a', 1); // ✅
queue.enqueue('b', 1); // ✅
queue.enqueue('c', 1); // ✅
queue.enqueue('d', 4); // ❌ Error

Explicit Queue Type

// before
const queue = new Qewe({ minQueue: true });

// after
const queue = new Qewe({ queueType: 'min' });

@jgmcelwain jgmcelwain self-assigned this Jan 5, 2022
@jgmcelwain jgmcelwain merged commit 6e01294 into main Jan 5, 2022
@jgmcelwain jgmcelwain deleted the feat/max-queue-size branch January 5, 2022 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant