Hi; I'm using the Hallon gem to work with collaborative playlists. In general, things are working well, but when the playlists are modified by other processes (i.e. add/delete tracks from the desktop client), my queries of the playlist return stale results. I'm sure that this has to do with the fact that I'm not subscribing to callbacks, but I cannot quite figure out how to do so from the existing documentation.Was wondering if anyone has examples that show an implementation including subscribing to callbacks?
--
You received this message because you are subscribed to the Hallon ruby gem mailing list.
- To view this group online, visit https://groups.google.com/d/forum/ruby-hallon
- To post to this group, send email to ruby-...@googlegroups.com
- To unsubscribe from this group, send email to ruby-hallon...@googlegroups.com
---
You received this message because you are subscribed to the Google Groups "Hallon" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-hallon...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
On Thursday, 14 February 2013 at 17:22, Hallon on behalf of John Halloran wrote:
Thanks, Kim. Calling 'process_events' does seem to get me back into sync with changes made to the the playlist.Now my question is whether or not there is any way to determine how many times I should call 'process_events'.
It seems that multiple calls are required in order to get a playlist back into sync, but I'm not sure how to figure out how many calls are needed, or when the queue or events has been cleared.
The return value of 'process_events' seems a bit opaque as well, as it seems that it needs to be called repeatedly to clear a queue of events.... Any guidance here would be appreciated!