mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-20 16:22:56 +02:00
work on making the netscript api tighter
This commit is contained in:
@@ -9,7 +9,7 @@ Attempt to write to a port.
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
tryWrite(port: number, data: string[] | number): boolean;
|
||||
tryWrite(port: number, data: string[] | number): Promise<boolean>;
|
||||
```
|
||||
|
||||
## Parameters
|
||||
@@ -21,7 +21,7 @@ tryWrite(port: number, data: string[] | number): boolean;
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
boolean
|
||||
Promise<boolean>
|
||||
|
||||
True if the data is successfully written to the port, and false otherwise.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user