Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

1
  • I'll have to look at ScheduledDisposable more; I didn't know that existed. Anyway, the way you've chosen to implement this is pretty different than mine, but it's an interesting perspective. At its core my implementation is using a Queue<IDisposable> and clients just add to the "pool" (maybe this is the wrong term) and the pool disposes on its own (with a timer -- when it fires it dequeues everything and disposes it). Commented Jul 26, 2014 at 1:09