NETSCRIPT: added portHandle.nextWrite() (#187)

This commit is contained in:
LJ
2022-11-03 03:17:29 -07:00
committed by GitHub
parent 3ce4dcf612
commit 9eb5f7ef23
2 changed files with 20 additions and 0 deletions

View File

@@ -998,6 +998,13 @@ export interface NetscriptPort {
*/
tryWrite(value: string | number): boolean;
/**
* Sleeps until the port is written to.
* @remarks
* RAM cost: 0 GB
*/
nextWrite(): Promise<void>;
/**
* Shift an element out of the port.
* @remarks