Skip to content

Latest commit

 

History

History
8 lines (7 loc) · 457 Bytes

README.md

File metadata and controls

8 lines (7 loc) · 457 Bytes

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.