Skip to content

Commit

Permalink
Export internal mutex util (#1110)
Browse files Browse the repository at this point in the history
* Export internal mutex util

* Create sour-penguins-sing.md
  • Loading branch information
lukasIO authored Apr 18, 2024
1 parent 5e3fa62 commit 10e3443
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/sour-penguins-sing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"livekit-client": patch
---

Export internal mutex util
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { TrackPublication } from './room/track/TrackPublication';
import type { LiveKitReactNativeInfo } from './room/types';
import type { AudioAnalyserOptions } from './room/utils';
import {
Mutex,
createAudioAnalyser,
getEmptyAudioStreamTrack,
getEmptyVideoStreamTrack,
Expand Down Expand Up @@ -80,6 +81,7 @@ export {
supportsAdaptiveStream,
supportsDynacast,
supportsVP9,
Mutex,
};
export type {
AudioAnalyserOptions,
Expand Down
3 changes: 3 additions & 0 deletions src/room/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,9 @@ export function createAudioAnalyser(
return { calculateVolume, analyser, cleanup };
}

/**
* @internal
*/
export class Mutex {
private _locking: Promise<void>;

Expand Down

0 comments on commit 10e3443

Please sign in to comment.