Skip to content

okzk/ticker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ticker

A thin wrapper for Go’s ticker.

Installation

go get github.com/okzk/ticker

Example

package main

import (
	"fmt"
	"github/okzk/ticker"
	"time"
)

func main() {
	ticker := ticker.New(10*time.Millisecond, func(t time.Time) {
		fmt.Println("tick at", t)
	})

	time.Sleep(35 * time.Millisecond)
	ticker.Stop()
}

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages