initRuntime method
Future<Stream<DataPackage> >
initRuntime(
- Map<
String, List< modules,DataPackage> > - StreamController<
DataPackage> outputController
override
Implementation
@override
Future<Stream<DataPackage>> initRuntime(
Map<String, List<DataPackage>> modules,
StreamController<DataPackage> outputController) {
// Build the map to route channels correctly from the mock env.
for (var ch in env.channels) {
_routerChannelMap[ch.id] = DataPackage(
channel: ch.id,
sourceModule: ch.sourceModule,
targetModule: ch.targetModule);
}
return Future<Stream<DataPackage>>.delayed(
Duration.zero, () => _mockRouterInputStream(outputController.stream));
}