feat(companion): add hasPendingWork runtime observability
This commit is contained in:
@@ -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?: {
|
||||
|
||||
Reference in New Issue
Block a user