failOutputs method
Completes all output properties with error.
Implementation
void failOutputs(Object error) {
final exception = error is Exception ? error : Exception(error.toString());
_pendingOutputException = exception;
if (completionSources.isEmpty) {
return;
}
for (final source in completionSources.values) {
source.trySetException(exception);
}
}