MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / loadLibrary

Method loadLibrary

src/plugins/terminal/www/Executor.js:260–264  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

execFunction · 0.50

Tested by

no test coverage detected