diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-05-13 12:59:10 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-05-13 12:59:10 +0300 |
| commit | 77241c7fcf156b6ebee13bf58f4342aca16292e1 (patch) | |
| tree | 337ee6f97aa752389173831736ab731b4e6808dc /util/context.go | |
| parent | fd6a85afd9d1f5700245ce152844472b1cd24923 (diff) | |
pruning some codes
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'util/context.go')
| -rw-r--r-- | util/context.go | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/util/context.go b/util/context.go deleted file mode 100644 index b768f05c..00000000 --- a/util/context.go +++ /dev/null @@ -1,12 +0,0 @@ -package util - -import "context" - -func IsDone(ctx context.Context) bool { - select { - case <-ctx.Done(): - return true - default: - return false - } -} |
