mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-29 03:43:50 +02:00
Update media player example to use cursors, fix some cursor bugs, add more cursor tests
This commit is contained in:
+6
-2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user