added await before the ns2 method calls

This commit is contained in:
Jordan Turner 2021-12-15 22:01:44 -07:00
parent 3926913790
commit db9b0a8ec8
3 changed files with 2 additions and 2 deletions

BIN
markdown/bitburner.ns.pdf Normal file

Binary file not shown.

BIN
markdown/bitburner.ns.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

@ -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}