References the node worker constructor.
References the shared worker constructor.
References the system worker constructor.
Ends the current thread.
close();
Exit pending wait()
in the current thread. Does not impact pending wait()
in other threads.
exitWait();
Requires an SSJS module (CommonJS compliant).
This module must be defined in PROJECT/modules/
.
// Get the module defined in PROJECT/modules/mail
var mail = require('mail');
// Get the module defined in PROJECT/modules/customers/platinium
var platiniumCustomers = require('/customers/platinium');
Describes the module id and path
Returns the exported API of the given module
Requires a NodeJS module.
This module must be defined in PROJECT/node_modules
.
// Get the Node module defined in PROJECT/node_modules/http
var http = requireNode('http');
Describes the module id and path
Returns the exported API of the given module
Allows a thread to handle events and to continue to exist after the complete code executes.
// Wait for 100ms
wait(100);
// Wait for the end of time
wait();
Milliseconds to wait for. If none, it's an infinite wait. Can be squeeze with an exitWait()
.
References the mutex constructor.