Re: topic-fn returning more than one topic

2017-07-04 Thread Stuart Sierra
Hi Oded,

I think you would have to implement your own message-routing to achieve 
this. Create one "output" mult for each topic, subscribe to them with 
`tap`, and route the messages to the channels as they arrive.

Pseudo-code:
(go-loop []
  (when-some [message (! topic-ch message)))

This is quite similar to the go-loop in the implementation of `pub`: async.clj 
line 886 

.

–S

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


topic-fn returning more than one topic

2017-07-02 Thread Oded Badt
Given a core.async pub-sub setting (or something equivalent)

Can anyone suggest an alternative to pub sub, or some tweak I may not be 
thinking of for a topic-fn to be able to communicate to the pub that a 
given message should be published to subscribers of more than one topic?

Thanks!
   Oded 

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.