Welcome to mirror list, hosted at ThFree Co, Russian Federation.

context.go « util - github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b768f05c5339bc399bc2618ecad024664621e1b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
package util

import "context"

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