feat(companion): add hasPendingWork runtime observability
This commit is contained in:
@@ -310,6 +310,10 @@ export class CompanionRuntimeClient {
|
||||
return this.pendingEventWaits.size;
|
||||
}
|
||||
|
||||
get hasPendingWork(): boolean {
|
||||
return this.pendingRequestCount > 0 || this.pendingEventWaitCount > 0;
|
||||
}
|
||||
|
||||
async connect(): Promise<void> {
|
||||
if (this.connected) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user