Creates a user runtime/sandbox that monitors a users code, and kills the process is necessary

Parameters:
NameTypeDescription
sandboxfunction

A sandbox function that is monitored by the Runtime module

Since
  • 1.0.0
Author
  • Glenn de Haan
Example
const {Runtime, Server} = require('@neobeach/core');

Runtime(() => {
   // Include your own code here
   server.run();
});