Is it possible for a single dbus-python exported object to dispatch multiple methods at once?  I have one object that exports a few (slow) methods, and in another program I quickly call them (asynchronously).  The slow object is printing at the beginning and end of each method call, so it's clear that the methods aren't being run simultaneously.  Instead, each waits for the one before it to finish.  Is there some way to get the mainloop to dispatch methods simultaneously?
<br><br>Also, to make sure there wasn&#39;t a bug in the async calls, I tried doing all three methods at once in different instances of python, and I get the same problem.&nbsp; &quot;Screenshot&quot; follows:<br><br>tsuraan@localhost
 ~/test/python/dbus/moreblocking $ cat Slow.py <br>import gobject<br>import dbus<br>import dbus.service<br>import dbus.glib<br>import time<br><br>class Slow(dbus.service.Object):<br>&nbsp; def __init__(self):<br>&nbsp;&nbsp;&nbsp; bus = dbus.SystemBus
()<br>&nbsp;&nbsp;&nbsp; bus_name = dbus.service.BusName(&quot;com.example.Slow&quot;, bus)<br><br>&nbsp;&nbsp;&nbsp; super(Slow, self).__init__(bus_name, &quot;/Object&quot;)<br><br>&nbsp; @dbus.service.method(&quot;com.example.Slow&quot;)<br>&nbsp; def function1(self):
<br>&nbsp;&nbsp;&nbsp; print &#39;starting function1&#39;<br>&nbsp;&nbsp;&nbsp; time.sleep(5)<br>&nbsp;&nbsp;&nbsp; print &#39;done with function1&#39;<br>&nbsp;&nbsp;&nbsp; return 1<br><br>&nbsp; @dbus.service.method(&quot;com.example.Slow&quot;)<br>&nbsp; def function2(self):<br>&nbsp;&nbsp;&nbsp; print &#39;starting function2&#39;
<br>&nbsp;&nbsp;&nbsp; time.sleep(5)<br>&nbsp;&nbsp;&nbsp; print &#39;done with function2&#39;<br>&nbsp;&nbsp;&nbsp; return 2<br><br>&nbsp; @dbus.service.method(&quot;com.example.Slow&quot;)<br>&nbsp; def function3(self):<br>&nbsp;&nbsp;&nbsp; print &#39;starting function3&#39;<br>&nbsp;&nbsp;&nbsp; time.sleep
(5)<br>&nbsp;&nbsp;&nbsp; print &#39;done with function3&#39;<br>&nbsp;&nbsp;&nbsp; return 3<br><br><br>if __name__ == &quot;__main__&quot;:<br>&nbsp; gobject.threads_init()<br>&nbsp; dbus.glib.init_threads()<br><br>&nbsp; s = Slow()<br>&nbsp; gobject.MainLoop().run()<br>
<br>tsuraan@localhost ~/test/python/dbus/moreblocking $ cat test.py <br>import gobject<br>import dbus<br>import dbus.glib<br>import time<br><br>def noop(*args):<br>&nbsp; pass<br><br>bus = dbus.SystemBus()<br>obj = bus.get_object
(&quot;com.example.Slow&quot;, &quot;/Object&quot;)<br>obj.function1(reply_handler=noop, error_handler=noop)<br>obj.function2(reply_handler=noop, error_handler=noop)<br>obj.function3(reply_handler=noop, error_handler=noop)
<br><br>gobject.MainLoop().run()<br><br>tsuraan@localhost ~/test/python/dbus/moreblocking $ python Slow.py &amp; sleep 1 &amp;&amp; python test.py <br>[1] 18460<br>starting function1<br>done with function1<br>starting function2
<br>done with function2<br>starting function3<br>done with function3<br><br>