My interest is more on using async calls than implementing libraries
that support async calls. It is more close to Jurg's idea.
Studying the framework of GIO async and DBus async, I found complexity
there.
Those two asyncs are already different and if we want to support more
async libraries, the
for asynchronous DBus calls.
= intro =
Vala has embedded DBus calls through its dynamic method mechanism.
It is nice, but this is not yet the complete story of DBus.
Aside from the sync calls, DBus can also make async calls. In an async
call, the caller starts a DBus call on a DBusGProxy
* Christian Hergert wrote, On 17/10/08 08:06:
This isn't totally applicable, but I thought I'd mention it before too
much more async voodo.
I've been working on an asynchronous toolkit library for GObject so
that once we get yield return/yield break support I can implement my
ideas I posted
For tasks, you have two options.
1) Create a GTask with a callback and user_data.
2) Inherit from GTask and implement the execute (and optionally,
cancel) methods.
Keen observers will notice my challenge right away. Yes, I inherit
from GObject for reference counting and general ease of use. It
* Christian Hergert wrote, On 17/10/08 09:24:
For tasks, you have two options.
1) Create a GTask with a callback and user_data.
2) Inherit from GTask and implement the execute (and optionally,
cancel) methods.
Keen observers will notice my challenge right away. Yes, I inherit
from GObject
On Fri, Oct 17, 2008 at 11:25 AM, Sam Liddicott [EMAIL PROTECTED] wrote:
* Christian Hergert wrote, On 17/10/08 09:24:
For tasks, you have two options.
1) Create a GTask with a callback and user_data.
2) Inherit from GTask and implement the execute (and optionally,
cancel) methods.
Totally. Like I said, not really applicable, but figured I'd mention it.
With closures, the framework will stay the same, you just get access
to more locals as your user_data wont get hi-jacked by the instance,
but the closure data.
-- Christian
On Fri, Oct 17, 2008 at 2:25 AM, Sam Liddicott
: [Vala] Proposal for asynchronous DBus calls.
= intro =
Vala has embedded DBus calls through its dynamic method mechanism.
It is nice, but this is not yet the complete story of DBus.
Aside from the sync calls, DBus can also make async calls. In an async
call, the caller starts a DBus call
What if vala can also embed async DBus calls the same way as sync DBus
calls?
What if one could pass a callback to a DBus method invocation to
automagically make it asynchronous?
http://live.gnome.org/Vala/DBusSample
--
http://homes.eff.org/~barlow/EconomyOfIdeas.html