Skip to content

Commit

Permalink
WATCHER: (WIP) Add poller
Browse files Browse the repository at this point in the history
  • Loading branch information
Cian911 committed Jan 6, 2022
1 parent 5050fea commit 32809f8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions watcher/poller.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package watcher

import "time"

func Poll(interval int) {
ticker := time.NewTicker(interval * time.Second)
for {
select {
case <-ticker.C:
}
}
}
Empty file added watcher/poller_test.go
Empty file.

0 comments on commit 32809f8

Please sign in to comment.