Files
mq/examples/consumer.go
2024-10-12 19:19:10 +05:45

15 lines
254 B
Go

package main
import (
"context"
"github.com/oarkflow/mq"
"github.com/oarkflow/mq/examples/tasks"
)
func main() {
consumer1 := mq.NewConsumer("F", "queue1", tasks.Node6, mq.WithWorkerPool(100, 4, 50000))
consumer1.Consume(context.Background())
}