Skip to content

Commit bc10e3e

Browse files
committed
fix: Remove async marker from checkSessionLockFree
1 parent 5e5a250 commit bc10e3e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/BasePlatform.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -512,9 +512,9 @@ export default abstract class BasePlatform {
512512
/**
513513
* Checks if the current session is lock-free, i.e., no other instance is holding the session lock.
514514
* Platforms that support session locking should override this method.
515-
* @returns {Promise<boolean>} True if the session is lock-free, false otherwise.
515+
* @returns {boolean} True if the session is lock-free, false otherwise.
516516
*/
517-
public abstract checkSessionLockFree(): Promise<boolean>;
517+
public abstract checkSessionLockFree(): boolean;
518518
/**
519519
* Attempts to acquire a session lock for this instance.
520520
* If another instance is detected, calls the provided callback.

test/test-utils/platform.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class MockPlatform extends BasePlatform {
2020
Object.assign(this, platformMocks);
2121
}
2222

23-
public async checkSessionLockFree(): Promise<boolean> {
23+
public checkSessionLockFree(): boolean {
2424
return SessionLock.checkSessionLockFree();
2525
}
2626

0 commit comments

Comments
 (0)