SignalR/SignalR — pull request #661 by KrzysFR (2012-09-08 20:47:53+00:00)
Title: Lock-Free disposing of new subscriptions

Two commits:

* Tried to remove the ManualResetEventSlim by making the callback Dispose if they have the instance, or flag the value as dead and rely on the original call to Dispose it later.
Only change I see is change in timing of when the subscription is disposed.

* Some optimization when looping over lists of messages by caching the segment in a local for the inner loop.

Please check to see if I did not break anything :D