mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-19 20:55:44 +01:00
added await before the ns2 method calls
This commit is contained in:
parent
3926913790
commit
db9b0a8ec8
BIN
markdown/bitburner.ns.pdf
Normal file
BIN
markdown/bitburner.ns.pdf
Normal file
Binary file not shown.
BIN
markdown/bitburner.ns.png
Normal file
BIN
markdown/bitburner.ns.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 43 KiB |
4
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
4
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@ -3721,9 +3721,9 @@ interface Stanek {
|
||||
* ```ts
|
||||
* export async function main(ns) {
|
||||
* // Basic ns functions can be accessed on the ns object
|
||||
* ns.methodName;
|
||||
* await ns.methodName;
|
||||
* // Some related functions are gathered under a sub-property of the ns object
|
||||
* ns.property.methodName
|
||||
* await ns.property.methodName
|
||||
* }
|
||||
* ```
|
||||
* {@link https://bitburner.readthedocs.io/en/latest/netscript/netscriptjs.html| ns2 in-game docs}
|
||||
|
Loading…
Reference in New Issue
Block a user