Update media player example to use cursors, fix some cursor bugs, add more cursor tests

This commit is contained in:
Vanilagy
2025-12-20 21:46:24 +01:00
parent de82f6f3c9
commit 3fa95cb449
8 changed files with 319 additions and 265 deletions
+6 -2
View File
@@ -932,7 +932,7 @@ export interface AsyncMutexLock extends Disposable {
}
export class AsyncMutex4 {
private locked = false;
locked = false;
private resolverQueue: (() => void)[] = [];
lock() {
@@ -1013,7 +1013,7 @@ export class CallSerializer2 {
}
}
done() {
waitUntilIdle() {
if (this.currentPromise) {
return this.currentPromise
.catch(() => {})
@@ -1022,6 +1022,10 @@ export class CallSerializer2 {
return null;
}
}
isIdle() {
return !this.currentPromise;
}
}
export class AsyncGate {