* Loads a native library from the specified path. * * @param {string} path - The path to the native library to load. * @returns {Promise } Resolves when the library has been loaded. * * @example * executor.loadLibrary('/path/to/library.so');
(path)
| 258 | * executor.loadLibrary('/path/to/library.so'); |
| 259 | */ |
| 260 | loadLibrary(path) { |
| 261 | return new Promise((resolve, reject) => { |
| 262 | exec(resolve, reject, this.ExecutorType, "loadLibrary", [path]); |
| 263 | }); |
| 264 | } |
| 265 | } |
| 266 | |
| 267 | //backward compatibility |