Hi,<br>I'm currently trying to merge db-omatic, taskomatic and host-register into a big EventMachine loop to solve some concurrency issues and be able to boot many vms faster.<br><br>My problem is that each method call to libvirt blocks the loop for quite long (sometimes 0.7 seconds) and qmf aparently has a way to do it asynchronously but I have no idea how to do this with the qmf module for ruby.<br>
<br>I found some instructions for python though : <a href="http://qpid.apache.org/books/0.8/AMQP-Messaging-Broker-CPP-Book/html/ch02s03.html#QMFPythonConsoleTutorial-AsynchronousMethodCallsandMethodTimeouts">http://qpid.apache.org/books/0.8/AMQP-Messaging-Broker-CPP-Book/html/ch02s03.html#QMFPythonConsoleTutorial-AsynchronousMethodCallsandMethodTimeouts</a><br>
<br>I tried result=domain.create(:async=>true) but it did not work, it's still blocking until libvirt answers...<br><br>So how to call methods asynchronously ? More importantly, where do I get the callbacks from ?<br>
Thanks in advance<br>