Files
mq/examples/consumer.go
2024-10-17 10:03:07 +05:45

15 lines
257 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())
}