mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-05-02 13:34:15 +02:00
Refactor plugin manager and gRPC server (#96)
This commit is contained in:
@@ -18,6 +18,10 @@ export class PluginHandle {
|
||||
this.#worker.postMessage(event);
|
||||
}
|
||||
|
||||
async terminate() {
|
||||
await this.#worker.terminate();
|
||||
}
|
||||
|
||||
#createWorker(): Worker {
|
||||
const workerPath = process.env.YAAK_WORKER_PATH ?? path.join(__dirname, 'index.worker.cjs');
|
||||
const worker = new Worker(workerPath, {
|
||||
|
||||
Reference in New Issue
Block a user