feat(companion): add cancellable pending event wait helper

This commit is contained in:
William Valentin
2026-02-16 22:18:17 -08:00
parent c41332a643
commit c4a8d099d6
6 changed files with 69 additions and 2 deletions
+12
View File
@@ -269,6 +269,10 @@ export class MacOSCompanionClient {
this.runtime.clearEventSubscriptions();
}
cancelPendingEventWaits(reason?: string): void {
this.runtime.cancelPendingEventWaits(reason);
}
listKnownEventNames(): CompanionEventName[] {
return this.runtime.listKnownEventNames();
}
@@ -535,6 +539,10 @@ export class IOSCompanionClient {
this.runtime.clearEventSubscriptions();
}
cancelPendingEventWaits(reason?: string): void {
this.runtime.cancelPendingEventWaits(reason);
}
listKnownEventNames(): CompanionEventName[] {
return this.runtime.listKnownEventNames();
}
@@ -799,6 +807,10 @@ export class AndroidCompanionClient {
this.runtime.clearEventSubscriptions();
}
cancelPendingEventWaits(reason?: string): void {
this.runtime.cancelPendingEventWaits(reason);
}
listKnownEventNames(): CompanionEventName[] {
return this.runtime.listKnownEventNames();
}