Making asynchronous calls
robert_rawlins at hotmail.com
Thu Feb 7 01:48:56 PST 2008
I'm looking for some advice. I've been playing around with making asynchronous calls between a little service and a client that I've been working on, but I'm not quite sure that I'm correctly understanding what asynchronous calls should be doing as at the moment its not quite meeting my requirements.
The challenge I have is that some of the functions in my service are going to take a long time to complete, but I don't want my client application to hang in the process either, I want it to continue with the rest of its work. Not only this, but I may also want to be able to make calls to that same service function whilst previous requests are still running.
For arguments sake, lets say that my service function resolves a web service or something like that, I want to be able to call multiple web services at the same time, and handle their results as they are returned to me, however, I'm not looking to 'queue' the requests, as I don't want a slow resolving service to hang the queue. Is this something that making asynchronous calls will solve for me? or will I need to look into some type of thread implementation as well?
I really appreciate your advice guys, I'm new to the 'events' based programming philosophy.
Telly addicts unite!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the dbus