feat(companion): add hasPendingWork runtime observability

This commit is contained in:
William Valentin
2026-02-16 20:54:23 -08:00
parent 7e556c5815
commit d14f82cd84
6 changed files with 52 additions and 2 deletions
+12
View File
@@ -283,6 +283,10 @@ export class MacOSCompanionClient {
return this.runtime.pendingEventWaitCount;
}
get hasPendingWork(): boolean {
return this.runtime.hasPendingWork;
}
waitForAnyEvent<TData = unknown>(
eventNames: readonly (CompanionEventName | string)[],
options?: {
@@ -533,6 +537,10 @@ export class IOSCompanionClient {
return this.runtime.pendingEventWaitCount;
}
get hasPendingWork(): boolean {
return this.runtime.hasPendingWork;
}
waitForAnyEvent<TData = unknown>(
eventNames: readonly (CompanionEventName | string)[],
options?: {
@@ -781,6 +789,10 @@ export class AndroidCompanionClient {
return this.runtime.pendingEventWaitCount;
}
get hasPendingWork(): boolean {
return this.runtime.hasPendingWork;
}
waitForAnyEvent<TData = unknown>(
eventNames: readonly (CompanionEventName | string)[],
options?: {