Skip to content

Instantly share code, notes, and snippets.

@zcaceres
Created November 18, 2018 21:26
Show Gist options
  • Save zcaceres/f3281a53997a9037fd1f1e204e2075aa to your computer and use it in GitHub Desktop.
Save zcaceres/f3281a53997a9037fd1f1e204e2075aa to your computer and use it in GitHub Desktop.
Sample 3
static async invoke(method, ...args) {
try {
const zerorpc = PythonConnector.server();
return await Utils.promisify(zerorpc.invoke, zerorpc, method, ...args);
}
catch (e) {
return Promise.reject(e)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment