feat: resize

This commit is contained in:
sujit
2024-10-11 21:14:51 +05:45
parent 1a8a5547fa
commit b554886d8d
9 changed files with 236 additions and 200 deletions

View File

@@ -5,9 +5,9 @@ import (
)
type Queue struct {
name string
consumers xsync.IMap[string, *consumer]
tasks chan *QueuedTask // channel to hold tasks
name string
}
func newQueue(name string, queueSize int) *Queue {