configureDownloadUpdatesStream static method
Registers a shared download-updates stream for all SmartDownloader paths (new downloads and attach-to-existing).
stream may be single- or broadcast; non-broadcast sources are
wrapped with Stream.asBroadcastStream so concurrent downloads can
each call Stream.listen.
Implementation
static void configureDownloadUpdatesStream(Stream<TaskUpdate>? stream) {
_configuredDownloadUpdatesStream = stream;
_configuredBroadcastStream = null;
}