# Drb object client - call and continue?

**URL:** <https://www.ruby-forum.com/t/drb-object-client-call-and-continue/85100>\
**Category:** Ruby\
**Created:** [February 10, 2007, 1:04am UTC](https://www.ruby-forum.com/t/drb-object-client-call-and-continue/85100 "2007-02-10T01:04:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ddancer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ecb155/32.png) [@ddancer](https://www.ruby-forum.com/u/ddancer)\
**Post date:** [February 10, 2007, 1:04am UTC](https://www.ruby-forum.com/t/drb-object-client-call-and-continue/85100/1 "2007-02-10T01:04:07Z")

</div>

Hello,

I’m working on a script which calls to a drb object. I’m wondering if  
there is a way to invoke the drb process without the caller waiting for  
the drb process to complete.

I’ll be more descriptive. Here is my code…

##########################################################

DRb.start\_service()  
obj = DRbObject.new(nil, ‘druby://localhost:9000’)  
args = Hash.new

# run back end processing, and carry on

obj.perforce\_this(args)

##########################################################

What I’m hoping to find is a way such that the call  
“obj.perforce\_this(args)” can occur and the drb server can simply  
respond like “message received” allowing the client to go on with it’s  
business while the server process completes it’s new task.

Is this possible? Or do I need to go a different route?

regards,

andy koch

---

<div class="post-metadata">

**Author:** ![ddancer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ecb155/32.png) [@ddancer](https://www.ruby-forum.com/u/ddancer)\
**Post date:** [February 10, 2007, 1:06am UTC](https://www.ruby-forum.com/t/drb-object-client-call-and-continue/85100/2 "2007-02-10T01:06:08Z")

</div>

On Sat, 10 Feb 2007, Andy K. wrote:

> DRb.start\_service()  
> like “message received” allowing the client to go on with it’s business  
> while the server process completes it’s new task.
> 
> Is this possible? Or do I need to go a different route?
> 
> regards,
> 
> andy koch

background = Thread.new{ drbobject.message }

# …

background.value # blocks for value

-a
