Skip to content

Commit 890ad78

Browse files
committed
update comments
1 parent 5da7c77 commit 890ad78

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/replay/src/replay.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ export class ReplayContainer implements ReplayContainerInterface {
225225
* Stops the recording, if it was running.
226226
*
227227
* Returns true if it was previously stopped, or is now stopped,
228-
* * else false.
228+
* otherwise false.
229229
*/
230230
public stopRecording(): boolean {
231231
try {
@@ -312,12 +312,14 @@ export class ReplayContainer implements ReplayContainerInterface {
312312
}
313313

314314
/**
315-
* If not in "session" recording mode, flush event buffer (i.e. creates a new replay).
315+
* If not in "session" recording mode, flush event buffer which will create a new replay.
316316
* Unless `continueRecording` is false, the replay will continue to record and
317317
* behave as a "session"-based replay.
318+
*
319+
* Otherwise, queue up a flush.
318320
*/
319321
public async sendBufferedReplayOrFlush({ continueRecording = true }: SendBufferedReplayOptions = {}): Promise<void> {
320-
// Don't allow if in session mode, use `flush()` instead
322+
// if in session mode, call debounced flush
321323
if (this.recordingMode === 'session') {
322324
return this._debouncedFlush() as Promise<void>;
323325
}

0 commit comments

Comments
 (0)