feat(companion): expose pending event wait observability
This commit is contained in:
@@ -279,6 +279,10 @@ export class MacOSCompanionClient {
|
||||
return this.runtime.pendingRequestCount;
|
||||
}
|
||||
|
||||
get pendingEventWaitCount(): number {
|
||||
return this.runtime.pendingEventWaitCount;
|
||||
}
|
||||
|
||||
waitForAnyEvent<TData = unknown>(
|
||||
eventNames: readonly (CompanionEventName | string)[],
|
||||
options?: {
|
||||
@@ -525,6 +529,10 @@ export class IOSCompanionClient {
|
||||
return this.runtime.pendingRequestCount;
|
||||
}
|
||||
|
||||
get pendingEventWaitCount(): number {
|
||||
return this.runtime.pendingEventWaitCount;
|
||||
}
|
||||
|
||||
waitForAnyEvent<TData = unknown>(
|
||||
eventNames: readonly (CompanionEventName | string)[],
|
||||
options?: {
|
||||
@@ -769,6 +777,10 @@ export class AndroidCompanionClient {
|
||||
return this.runtime.pendingRequestCount;
|
||||
}
|
||||
|
||||
get pendingEventWaitCount(): number {
|
||||
return this.runtime.pendingEventWaitCount;
|
||||
}
|
||||
|
||||
waitForAnyEvent<TData = unknown>(
|
||||
eventNames: readonly (CompanionEventName | string)[],
|
||||
options?: {
|
||||
|
||||
Reference in New Issue
Block a user