-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
go func() {
ctx := context.Background()
progressChan := progress.NewTicker(ctx, r, size, 1*time.Second)
for p := range progressChan {
fmt.Printf("\r%v remaining...", p.Remaining().Round(time.Second))
}
fmt.Println("\rdownload is completed")
}()
I guess the line ctx := context.Background()
should be deleted since ctx is already defined outer goroutine.
Metadata
Metadata
Assignees
Labels
No labels