event: add new Subscription type and related utilities
This commit introduces a new Subscription type, which is synonymous with ethereum.Subscription. It also adds a couple of utilities that make working with Subscriptions easier. The mot complex utility is Feed, a synchronisation device that implements broadcast subscriptions. Feed is slightly faster than TypeMux and will replace uses of TypeMux across the go-ethereum codebase in the future.
Showing
event/example_feed_test.go
0 → 100644
event/example_scope_test.go
0 → 100644
event/feed.go
0 → 100644
event/feed_test.go
0 → 100644
event/subscription.go
0 → 100644
event/subscription_test.go
0 → 100644
Please register or sign in to comment