openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
1 lines • 532 B
JavaScript
import{It as e}from"./session-transcript-reconcile.worker-subsystem-BUNaGCPF.mjs";import{A as t,t as n}from"./session-transcript-reconcile.worker-worker-task-pool-iygKQQAw.mjs";async function runFileLogIOInWorker(r,i){let a=e(Symbol.for(`openclaw.fileLogWorker`),()=>({}),async e=>{await i(),await e.pool?.close(),e.pool=void 0});return await(a.pool??=new n({workerUrl:t(`fileLog`),workerClass:`writer`})).run(r,{inputBytes:Buffer.byteLength(r.file)+(r.type===`append`?Buffer.byteLength(r.payload):0)})}export{runFileLogIOInWorker};