fluttercommunity / fluttercommunity/flutter_downloader

Offer waiting for a specific download task

Open
#253 2 comments 2 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
940
Forks
561
Avg merge
1h 18m
Merged PRs (30d)
1

Description

It would be great if the end-developer could just wait for a certain task, perhaps by calling something in the likes of `await FlutterDownloader.waitForTask(taskId);`

It wouldn't be too hard to implement – especially after #252 is implemented, there's already a stream of updates coming from the background isolate, so the function could simply create a `Completer` and complete that when the right update event comes through.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.