Skip to content
This repository was archived by the owner on Feb 28, 2024. It is now read-only.

Support asynchronous calls (#58) #1

Merged
merged 1 commit into from
Mar 10, 2019

Conversation

molobrakos
Copy link
Owner

Added support for asynchronous calls of methods. A method is called
synchronously unless its callback parameter is specified. A callback
is a function f(*args, returned=None, error=None), where args is
callback_args specified in the method call, returned is a return
value of the method and error is an exception raised by the method.

Example of an asynchronous call:

def func(x, y, returned=None, error=None):
pass

proxy.Method(a, b, callback=func, callback_args=(x, y))

Added support for asynchronous calls of methods. A method is called
synchronously unless its callback parameter is specified. A callback
is a function f(*args, returned=None, error=None), where args is
callback_args specified in the method call, returned is a return
value of the method and error is an exception raised by the method.

Example of an asynchronous call:

def func(x, y, returned=None, error=None):
  pass

proxy.Method(a, b, callback=func, callback_args=(x, y))
@molobrakos molobrakos merged commit 45b1c86 into molobrakos:master+async+unixfd Mar 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants