I see. I'll consider relaxing om.core/read to return data instead of another cursor. This should make it easier to work with and you can always hold onto the original cursor for doing app state transactions.
On Mon, Jan 20, 2014 at 6:46 PM, kovas boguta <kovas.bog...@gmail.com>wrote: > On Mon, Jan 20, 2014 at 5:36 PM, David Nolen <dnolen.li...@gmail.com> > wrote: > > Ok this sounds like an interesting problem :) > > > Om attempts to address consistency issues. Just because you have a cursor > > doesn't mean you actually have the most current value in the application > > state, thus read. read is always guaranteed to give the latest value. > But if > > you read only to put the cursor back into an asynchronous channel of > course > > all bets are off! > > So is the recommendation to put the cursor itself on the channel, and > then delay read until the last possible moment? > > > To me pipelining cursors into a series of asynchronous operations just > > doesn't make any sense, you're bound to end up in an inconsistent state. > > The reason I want to do this is client/server communication. > Eventually some data needs to escape your application, and yes this > implies that the remote system will see state that is not completely > up to date. > > In this context, I want to use a (short) sequence of go blocks to > process the data as its getting funneled towards the server > connection. > > -- > Note that posts from new members are moderated - please be patient with > your first post. > --- > You received this message because you are subscribed to the Google Groups > "ClojureScript" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojurescript+unsubscr...@googlegroups.com. > To post to this group, send email to clojurescript@googlegroups.com. > Visit this group at http://groups.google.com/group/clojurescript. > -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojurescript+unsubscr...@googlegroups.com. To post to this group, send email to clojurescript@googlegroups.com. Visit this group at http://groups.google.com/group/clojurescript.