!str #16448 Change error to failure

* one API change OverflowStrategy.error -> OverflowStrategy.fail
* error is still kept in the internals where we are at the reactive
  streams level
This commit is contained in:
Patrik Nordwall 2015-01-30 10:30:56 +01:00
parent 31497cac9b
commit 01646d10ff
32 changed files with 87 additions and 88 deletions

View file

@ -31,7 +31,7 @@ class RecipeReduceByKey extends RecipeSpec {
// get a stream of word counts
val counts: Source[(String, Int)] =
countedWords
.buffer(MaximumDistinctWords, OverflowStrategy.error)
.buffer(MaximumDistinctWords, OverflowStrategy.fail)
.mapAsync(identity)
//#word-count
@ -62,7 +62,7 @@ class RecipeReduceByKey extends RecipeSpec {
}
}
reducedValues.buffer(maximumGroupSize, OverflowStrategy.error).mapAsync(identity)
reducedValues.buffer(maximumGroupSize, OverflowStrategy.fail).mapAsync(identity)
}
val wordCounts = words.via(reduceByKey(