2
0
mirror of https://github.com/hibiken/asynq.git synced 2025-10-26 11:16:12 +08:00
This commit is contained in:
Ken Hibino
2020-05-08 06:19:48 -07:00
parent 44aad7f037
commit 26b78136ba
2 changed files with 7 additions and 0 deletions

View File

@@ -147,6 +147,7 @@ const redisAddr = "127.0.0.1:6379"
func main() {
r := asynq.RedisClientOpt{Addr: redisAddr}
c := asynq.NewClient(r)
defer c.Close()
// ----------------------------------------------------
// Example 1: Enqueue task to be processed immediately.