Refactored agents calling into its own struct

This commit is contained in:
Deluan
2021-06-08 16:57:19 -04:00
parent 6c1ba8f0d0
commit f9eec5e4dc
5 changed files with 516 additions and 190 deletions
+12
View File
@@ -0,0 +1,12 @@
package utils
import "context"
func IsCtxDone(ctx context.Context) bool {
select {
case <-ctx.Done():
return true
default:
return false
}
}