We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86e1b88 commit 3c5cf52Copy full SHA for 3c5cf52
stop/stop.go
@@ -5,6 +5,10 @@ import "time"
5
// Signal is the type that gets sent down the stop channel.
6
type Signal struct{}
7
8
+// NoWait represents a time.Duration with zero value.
9
+// Logically meaning no grace wait period when stopping.
10
+var NoWait time.Duration = 0
11
+
12
// Stopper represents types that implement
13
// the stop channel pattern.
14
type Stopper interface {
0 commit comments