Refactored agents calling into its own struct
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package utils
|
||||
|
||||
import "context"
|
||||
|
||||
func IsCtxDone(ctx context.Context) bool {
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
return true
|
||||
default:
|
||||
return false
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user