Commit Graph

7 Commits

Author SHA1 Message Date
Alex Bramley 6e87169e2c Make API for adding/deleting handlers more coherent.
Previously, it was possible to add the same handler (as returned by NewHandler)
to multiple different event lists, but DelHandler only removed a handler from
*all* event lists it was present in. This may not be wanted behaviour, and
reduces control over the event lists.

Instead, allow both Add and DelHandler to take a variadic list of events to
add or delete handlers from.
2011-11-07 13:13:46 +00:00
Alex Bramley c400a2141a Run gofmt over code, it's been a while. 2011-09-12 23:25:09 +01:00
Alex Bramley bb703cc945 Fix SerialDispatcher test. 2011-07-29 23:15:17 +01:00
Alex Bramley 1849d886d4 Revert "Merge branch 'master' into release"
This reverts commit 2528d13314, reversing
changes made to f0a9246c7a.
2011-07-29 23:14:21 +01:00
Alex Bramley 4994263773 Fix SerialDispatcher test. 2011-07-29 23:11:05 +01:00
Alex Bramley a2b53e6fc3 Rename registry -> event for gb purposes. 2011-07-27 21:00:23 +01:00
Alex Bramley 3e82bf33c3 unit tests, sort of. 2011-07-27 17:49:55 +01:00