Skip to content

Commit fc80cf1

Browse files
committed
Added a comment
1 parent 2c4bed9 commit fc80cf1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/storage/test/unit/task.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,8 @@ describe('Firebase Storage > Upload Task', () => {
400400
// Promise for when we are finally in the pause state
401401
const pausedStateCompleted = new Deferred();
402402
let complete = 0;
403+
// Adds a callback for when the state has changed. The callback resolves the pausedStateCompleted promise
404+
// to let our await know when to resume.
403405
function addCallbacks(task: UploadTask): void {
404406
let lastState: string;
405407
task.on(

0 commit comments

Comments
 (0)