DelegatingTimer Example

· Aug 28, 11:02 AM

I have uploaded a little example project that shows how to write a Timer subclass in which the Action event implementation can be supplied using a delegate. I use this class all the time, and it has replaced all other Timer subclasses in my projects.

Download

---

Comment

  1. Thanks for posting this example Charles.

    Is it correct to say that delegates are Rb’s version of a Callback?

    Thomas Cunningham · Aug 28, 10:55 PM · #

  2. That’s a reasonable characterization.

    charles · Aug 29, 09:43 AM · #

Textile Help