Creates a user runtime/sandbox that monitors a users code, and kills the process is necessary
Parameters:
Name | Type | Description |
---|---|---|
sandbox | function | A sandbox function that is monitored by the Runtime module |
- Since
- 1.0.0
- Copyright
- MIT
- Source
Example
const {Runtime, Server} = require('@neobeach/core');
Runtime(() => {
// Include your own code here
server.run();
});