mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-19 15:54:09 +02:00
NETSCRIPT: Greatly speed up script launching, and remove the limitation unique args per script (#440)
* Remove the limitation unique args per script * Internal changes to how runningScripts are stored on the server, to make common usage faster.
This commit is contained in:
@@ -33,7 +33,7 @@ export class WorkerScript {
|
||||
delay: number | null = null;
|
||||
|
||||
/** Holds the Promise reject() function while the script is "blocked" by an async op */
|
||||
delayReject?: (reason?: ScriptDeath) => void;
|
||||
delayReject: ((reason?: ScriptDeath) => void) | undefined = undefined;
|
||||
|
||||
/** Stores names of all functions that have logging disabled */
|
||||
disableLogs: Record<string, boolean> = {};
|
||||
@@ -79,7 +79,7 @@ export class WorkerScript {
|
||||
hostname: string;
|
||||
|
||||
/** Function called when the script ends. */
|
||||
atExit?: () => void;
|
||||
atExit: (() => void) | undefined = undefined;
|
||||
|
||||
constructor(runningScriptObj: RunningScript, pid: number, nsFuncsGenerator?: (ws: WorkerScript) => NSFull) {
|
||||
this.name = runningScriptObj.filename;
|
||||
|
||||
Reference in New Issue
Block a user