-
Notifications
You must be signed in to change notification settings - Fork 32
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
Replace callbacks with streams #81
Comments
The reason the current implementation doesn't use streams is I wasn't experienced enough with Dart at the time to work out how to do it so I just started with callbacks. |
robert-ancell
added a commit
to robert-ancell/dbus.dart
that referenced
this issue
Sep 14, 2020
robert-ancell
added a commit
to robert-ancell/dbus.dart
that referenced
this issue
Sep 14, 2020
robert-ancell
added a commit
to robert-ancell/dbus.dart
that referenced
this issue
Sep 14, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently you register callbacks to handle signals:
I think the more Dart way of doing things is to use a stream, which would give an API like this:
or with callbacks:
The text was updated successfully, but these errors were encountered: