Skip to content

Run callbacks at close to requested time with limited concurrency

Notifications You must be signed in to change notification settings

xconnio/timertask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

timertask

Imagine a websocket server that sends ping message every X seconds of inactivity to each client, to be able to achieve that, the server would need to run on goroutine per client. Those goroutines are mostly idle and result in memory consumption. timertask attempts to solve that problems by running a single loop that runs every second to check which clients should be sent ping message.

This library enables that use-case and probably others.

About

Run callbacks at close to requested time with limited concurrency

Resources

Stars

Watchers

Forks