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

Feature: Add Events #40

Open
ghost opened this issue Apr 19, 2019 · 2 comments
Open

Feature: Add Events #40

ghost opened this issue Apr 19, 2019 · 2 comments

Comments

@ghost
Copy link

ghost commented Apr 19, 2019

I would really like to see events like:

Conntected
Disconnected
etc.

@nikeee
Copy link
Owner

nikeee commented Apr 20, 2019

Though I like events, I have some trouble implementing them. The event handlers are not guaranteed to fire in the same thread as they were originally installed (because they would be called in the background Thread). This opens up problems that I don't want to handle.

Maybe this will be something I can implement when looking at observables.

@SubstituteR
Copy link
Contributor

Though I like events, I have some trouble implementing them. The event handlers are not guaranteed to fire in the same thread as they were originally installed (because they would be called in the background Thread). This opens up problems that I don't want to handle.

Maybe this will be something I can implement when looking at observables.

If you don't go the observables route, you can always force them to fire from the thread they were installed in via SynchronizationContext and PostMessage.

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

No branches or pull requests

2 participants