m13253 / actionqueue-go

A timed event queue with expiry support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

actionqueue-go: A timed event queue with expiry support

Package actionqueue provides a timed event queue with expiry support.

Any event is added to the queue with two parameters, ActionTime and ExpireTime. The event will be fired upon ActionTime through the the NextEvent channel.

The caller may choose either to receive an event immediately, or at any time before it is expired. The queue takes care of the ExpireTime, and cancel expired events upon expiry.

About

A timed event queue with expiry support

License:MIT License


Languages

Language:Go 100.0%