Created
November 18, 2018 21:26
-
-
Save zcaceres/f3281a53997a9037fd1f1e204e2075aa to your computer and use it in GitHub Desktop.
Sample 3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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