Skip to content

Commit

Permalink
feat(service): disconnect method
Browse files Browse the repository at this point in the history
  • Loading branch information
kukhariev committed Mar 31, 2019
1 parent 76daaf7 commit 7a16eef
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/uploadx/src/uploadx.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ export class UploadxService {
return this.events.pipe(map(() => this.queue));
}

/**
* Kill uploads
*/
disconnect() {
this.queue.forEach(f => (f.status = 'paused'));
this.queue = [];
}
/**
*
* Create Uploader and add to the queue
Expand Down

0 comments on commit 7a16eef

Please sign in to comment.