title: Does anyone have a good example of how to use Synapse's Heartbeat function?
body: <p>I am using Synapse for Delphi, but when during HTTP downloads, of course, the GUI freezes.  Looking at the documentation, they suggest using the OnHeartbeat method.  </p>
  
  <p>(See <a href="http://www.ararat.cz/synapse/doku.php/public:howto:heartbeat" rel="nofollow noreferrer">http://www.ararat.cz/synapse/doku.php/public:howto:heartbeat</a> )</p>
  
  <p>Unfortunately, they don't actually give any code example, and while the concept is simple, the usage is non-obvious.</p>
  
  <p>Is this a per socket (object) setting, or a per application (class) setting?  Also, The callback procedure itself is defined as an object, which is a bit unusual.   Is anyone who has actually used this willing to share a sample code snippit?</p>