Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Latest commit

 

History

History
33 lines (19 loc) · 593 Bytes

bitburner.ns.atexit.md

File metadata and controls

33 lines (19 loc) · 593 Bytes

Home > bitburner > NS > atExit

NS.atExit() method

Add callback function when the script dies

Signature:

atExit(f: () => void, id?: string): void;

Parameters

Parameter Type Description
f () => void
id string (Optional)

Returns:

void

Remarks

RAM cost: 0 GB

NS2 exclusive

Add callback to be executed when the script dies.