chore: fix build warnings

This commit is contained in:
Simon Chan 2022-05-03 11:43:46 +08:00
parent 4d01f25124
commit f494d80166
4 changed files with 12 additions and 6 deletions

View file

@ -267,6 +267,13 @@ export class Adb implements Closeable {
return framebuffer(this);
}
/**
* Close the ADB connection.
*
* Note that it won't close the streams from backends.
* The streams are both physically and logically intact,
* and can be reused.
*/
public async close(): Promise<void> {
await this.dispatcher.close();
}