Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add stop download file method #46

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dithom
Copy link

@dithom dithom commented Jun 19, 2024

Awesome package and a lifesafer for my project!

Added two basic methods to stop the currently running download, as stated in #31.

Added a subscriber on class scope, which can be canceled. Additionally added the currently downloaded file on class scope, so it can be referenced from the stopDownloadFile method.

AFAIK there is on way for multiple async calls to the host? If so, this implementation might not work. Also a stopUploadFile method should be implemented for completion.

Hope it helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant