Skip to content

lstrihic/timedbuffer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Timed buffer

Simple implementation of the timed buffer in go.

See it in action:

tb := NewTimedBuffer(15, 1, func(data []interface{}) {
    // TODO do something with data
})
defer tb.Close()

for i := 0; i < 100; i++ {
    err := tb.Add(fmt.Sprintf("data %d", i))
    if err != nil {
    	return
    }   
}

About

Simple implementation of the timed buffer in go.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages