Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port EventStream subscriptions #90

Closed
cpx86 opened this issue Mar 21, 2017 · 2 comments
Closed

Port EventStream subscriptions #90

cpx86 opened this issue Mar 21, 2017 · 2 comments

Comments

@cpx86
Copy link
Contributor

cpx86 commented Mar 21, 2017

In Go you can replace the default subscriber for deadletter and supervision events.

See e.g.:
https://github.com/AsynkronIT/protoactor-go/blob/dev/actor/options.go
https://github.com/AsynkronIT/protoactor-go/blob/dev/actor/deadletter.go

@tomliversidge
Copy link
Contributor

tomliversidge commented Apr 5, 2017

Go also has a predicate to allow filtering of messages?

https://github.com/AsynkronIT/protoactor-go/blob/dev/eventstream/eventstream.go#L85
https://github.com/AsynkronIT/protoactor-go/blob/dev/eventstream/eventstream.go#L69

I've no experience of Go, but I'm presuming this is more than just filtering by type that we have in .net by using generics. i.e. a subscriber can subscribe to an event type and include a predicate to filter those types by?

@rogeralsing
Copy link
Contributor

In Go, the WithPredicate simply wraps the subscriber func inside a predicate.
We can do the same with the .NET Subscribe(Action<T> action)

Closing as we have the bits we need here. we can re-open if further requirements arise

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants