make it return inner port without awaiting

This commit is contained in:
Toshit Chawda 2024-07-09 11:53:07 -07:00
parent 7bd51538c8
commit 61dfcf6514
No known key found for this signature in database
GPG key ID: 91480ED99E2B3D9D
2 changed files with 6 additions and 14 deletions

View file

@ -125,8 +125,8 @@ export class BareMuxConnection {
});
}
async getInnerPort(): Promise<MessagePort> {
return await this.worker.port;
getInnerPort(): MessagePort | Promise<MessagePort> {
return this.worker.port;
}
}