mirror of
https://github.com/MercuryWorkshop/bare-mux.git
synced 2025-05-14 23:00:01 -04:00
make it return inner port without awaiting
This commit is contained in:
parent
7bd51538c8
commit
61dfcf6514
2 changed files with 6 additions and 14 deletions
|
@ -125,8 +125,8 @@ export class BareMuxConnection {
|
|||
});
|
||||
}
|
||||
|
||||
async getInnerPort(): Promise<MessagePort> {
|
||||
return await this.worker.port;
|
||||
getInnerPort(): MessagePort | Promise<MessagePort> {
|
||||
return this.worker.port;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue