tomerfiliba / agnos

Agnos - The Agnostic RPC Framework
http://agnos.sourceforge.net
Other
14 stars 7 forks source link

async and timed invocation #4

Open tomerfiliba opened 13 years ago

tomerfiliba commented 13 years ago

add async invocation of functions and methods. once we have that, adding timed invocation is trivial.

note: the protocol itself (libagnos) already supports this -- it only requires a way to exposing it nicely to the user.

i'm wondering whether to make it a separate function (easiest but increases code size), i.e.: res = client.async_foo(1,2,3) or as a wrapper around foo, i.e.: res = async(client.foo)(1,2,3)

note: making attributes async seems to be quite useless and rather counter-intuitive. need to see if it makes sense.