feat: cancel copy for upload

This commit is contained in:
Noah Hsu
2022-06-25 15:14:03 +08:00
parent 935416de45
commit ee2bc99e4c
3 changed files with 42 additions and 3 deletions

View File

@ -1,6 +1,8 @@
package utils
import "context"
import (
"context"
)
func IsCanceled(ctx context.Context) bool {
select {