forgetAsync

external fun forgetAsync(): Promise<Void>(source)

The SerialPort.forget() method of the SerialPort interface returns a Promise that resolves when access to the serial port is revoked.

MDN Reference