Files
trufflehog/pkg/common/context.go
T
2022-02-15 18:54:47 -08:00

13 lines
148 B
Go

package common
import "context"
func IsDone(ctx context.Context) bool {
select {
case <-ctx.Done():
return true
default:
return false
}
}