Browse Source

[add] ticker

bvbej 2 years ago
parent
commit
2422d788ce
1 changed files with 3 additions and 0 deletions
  1. 3 0
      pkg/ticker/ticker.go

+ 3 - 0
pkg/ticker/ticker.go

@@ -10,6 +10,9 @@ var _ Ticker = (*ticker)(nil)
 
 type Ticker interface {
 	worker()
+
+	Process(fun any) error
+	Stop()
 }
 
 type ticker struct {