Hacker News new | ask | show | jobs
by keyless_ 1466 days ago
Indeed, the first version of this heavily borrowed from this approach.

The trickiest part is correctly writing the logic that spawns the secondary thread used for heartbeats.