Open
Description
I noticed the #1196 (comment), and it seems that maintainers have fixed this.
But i use the alomost the same code given in the #1196 (comment):
client := redis.NewClient(&redis.Options{
Addr: "localhost:6379",
})
cancelCtx, cancelFn := context.WithCancel(context.Background())
wg := &sync.WaitGroup{}
wg.Add(1)
go func() {
client.BRPop(cancelCtx, 0, "")
wg.Done()
}()
time.Sleep(2 * time.Second)
cancelFn()
wg.Wait()
It still waits indefinitely due to the 0 timeout. I have no idea...
Metadata
Metadata
Assignees
Labels
No labels