performTaskFlow method

  1. @override
Stream<R> performTaskFlow(
  1. SourceProof proof
)
override

Implementation

@override
Stream<R> performTaskFlow(SourceProof proof) {
  final bus = createBus();
  final context = createContext(bus);

  context.protectedSet(proof.runtimeType, proof);

  _engine
      .run<C>(_rootTask, context)
      .then((_) => bus.close())
      .catchError(
        (error, stackTrace) => bus.closeWithError(error, stackTrace),
      );

  return bus.listen();
}