On 23 Jul 2013, at 14:15, Andy Holland <[email protected]> wrote:

> I must be missing the point here, I am confused by:
> 
> "I'm implementing a simple message bus. You can tell it to publish, eg 
> `bus.publish(message)` and this will be received by all wired handlers. It 
> returns no meaningful result. But I also want another method with slightly 
> different behaviour (it will probably accept a listener for the response and 
> only deliver to one handler). Currently the best name for this I can find is 
> "send", eg: `bus.send(message, …)`. "
> 
> I was thinking "accept a listener" as in my example.
> 
> I'm intrigued?

You can take a look at the code if you like, here's the behaviour I want (for 
now):

  
https://github.com/ashmoran/realm/blob/master/spec/realm/messaging/bus/simple_message_bus_spec.rb

And here's my current implementation:

  
https://github.com/ashmoran/realm/blob/master/lib/realm/messaging/bus/simple_message_bus.rb

If that doesn't clear it up, my spec needs fixing :)

BTW what email client are you using? It's doing something very strange and 
breaking email threads each time you reply.

Ash

-- 
http://www.patchspace.co.uk/
http://www.linkedin.com/in/ashmoran

-- 
You received this message because you are subscribed to the Google Groups 
"NWRUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nwrug-members.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to