fluttercommunity / fluttercommunity/flutter_downloader

multiple downloader_send_port

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

Description

Is there problem if I have more multiple `downloader_send_port` for different pages? I have page A from which I can navigate to page B. For both pages I have integrated the downloader but when I move to page B I see that this goes into the if:
```
bool isSuccess = IsolateNameServer.registerPortWithName(
_port.sendPort, 'downloader_send_port');
if (!isSuccess) {
_unbindBackgroundIsolate();
_bindBackgroundIsolate();
return;
}
```
After that it's fine but I realised that changing that port name works straight away. Does it matter?

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.