-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Hi,
I wonder if it would be possible to include a pause and resume method.
I am assuming that it should be fairly simple:
pause() {
if (this[kQuitting]) return
clearTimeout(this[kPollTimer])
this.paused = true
}
async resume() {
if (!this.paused) return
this[kStartPos] = null
this.paused = false
this._pollFileForChanges()
}Side quesion: Is the assumption correct that I always (also for the pause/resume case above) get a flush event before any data, therefore I am always able to get lastReadPosition first (I need the exact start byte for each chunk).
Metadata
Metadata
Assignees
Labels
No labels