As suggested in #32:
I've been experimenting with porting dbus-tokio to futures 0.2.0, and it seems like its dependency on tokio will get a lot lighter (seems like only tokio-reactor will be needed). I suggest that whenever tokio releases their futures 0.2 support, we start implementing this. For now, we can discuss a bit how the interface should look like.
One of the things I think would be extremely cool, would be the possibility to "subscribe" to new players coming online. With the current interface, you basically have to query dbus on set intervals for active players. Having something like PlayerFinder::stream() -> impl Stream<StreamItem=Player> would be very cool.
Secondly, having a Player somehow emit events in form of a Stream would be very useful too.
As suggested in #32:
I've been experimenting with porting
dbus-tokiotofutures0.2.0, and it seems like its dependency on tokio will get a lot lighter (seems like onlytokio-reactorwill be needed). I suggest that whenever tokio releases their futures 0.2 support, we start implementing this. For now, we can discuss a bit how the interface should look like.One of the things I think would be extremely cool, would be the possibility to "subscribe" to new players coming online. With the current interface, you basically have to query dbus on set intervals for active players. Having something like
PlayerFinder::stream() -> impl Stream<StreamItem=Player>would be very cool.Secondly, having a
Playersomehow emit events in form of aStreamwould be very useful too.