mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2024-12-22 03:30:35 +00:00
3775e198df
This PR adds a new type event.FeedOf[T], which is like event.Feed but parameterized over the channel element type. Performance is unchanged, and it still uses reflect. But unlike Feed, the generic version doesn't need to type-check interface{} arguments. All panic cases are gone from the API. |
||
---|---|---|
.. | ||
event_test.go | ||
event.go | ||
example_feed_test.go | ||
example_scope_test.go | ||
example_subscription_test.go | ||
example_test.go | ||
feed_test.go | ||
feed.go | ||
feedof_test.go | ||
feedof.go | ||
subscription_test.go | ||
subscription.go |