WorkerSandbox
Nodepod API / src / WorkerSandbox
Class: WorkerSandbox
Section titled “Class: WorkerSandbox”Defined in: src/worker-sandbox.ts:25
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new WorkerSandbox(
vol,cfg?):WorkerSandbox
Defined in: src/worker-sandbox.ts:34
Parameters
Section titled “Parameters”EngineConfig = {}
Returns
Section titled “Returns”WorkerSandbox
Methods
Section titled “Methods”clearCache()
Section titled “clearCache()”clearCache():
void
Defined in: src/worker-sandbox.ts:77
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”execute()
Section titled “execute()”execute(
code,filename?):Promise<ExecutionOutcome>
Defined in: src/worker-sandbox.ts:67
Parameters
Section titled “Parameters”string
filename?
Section titled “filename?”string
Returns
Section titled “Returns”Promise<ExecutionOutcome>
Implementation of
Section titled “Implementation of”getVolume()
Section titled “getVolume()”getVolume():
MemoryVolume
Defined in: src/worker-sandbox.ts:81
Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”runFile()
Section titled “runFile()”runFile(
filename):Promise<ExecutionOutcome>
Defined in: src/worker-sandbox.ts:72
Parameters
Section titled “Parameters”filename
Section titled “filename”string
Returns
Section titled “Returns”Promise<ExecutionOutcome>
Implementation of
Section titled “Implementation of”terminate()
Section titled “terminate()”terminate():
void
Defined in: src/worker-sandbox.ts:85
Returns
Section titled “Returns”void