kamilsk / retry

♻️ The most advanced interruptible mechanism to perform actions repetitively until successful.
https://pkg.go.dev/github.com/kamilsk/retry/v5
MIT License
340 stars 14 forks source link

WithContext should return ctx.Done channel #101

Closed kamilsk closed 5 years ago

kamilsk commented 6 years ago
semaphore.Acquire(semaphore.Multiplex(semaphore.WithContext(req.Context()), semaphore.WithSignal(os.Interrupt)))

like as errgroup:

g, ctx := errgroup.WithContext(ctx)

https://github.com/golang/sync/tree/master/errgroup

kamilsk commented 5 years ago

won't do