unasync trywriteport

This commit is contained in:
Snarling
2022-10-04 07:59:50 -04:00
parent aa80cf6451
commit 361466b7fa
3 changed files with 5 additions and 9 deletions

View File

@@ -51,11 +51,9 @@ Here is a summary of all rules you need to follow when writing Netscript JS code
* grow
* weaken
* sleep
* asleep
* prompt
* wget
* scp
* write
* writePort
* Any function that contains :code:`await` must be declared as :code:`async`
@@ -147,9 +145,7 @@ You may have noticed that every new ns2 file will contains the following comment
.. code-block:: javascript
/**
* @param {NS} ns
**/
/** @param {NS} ns */
This comment is used to help the text editor autocomplete functions in the Netscript API. You can enable it by pressing ctrl+space after `ns.`