* deduplicate logic for IODispatcher #24604 * introduce a resolveDispatcher helper in ActorAttributes * mention akka.stream.materializer.blocking-io-dispatcher instead of akka.stream.blocking-io-dispatcher in scaladocs * fix a flaky test * cosmetic changes in the touched files * move resolveDispather helper to the Dispatcher companion object under a new name resolve * filter out mima warning * fix mima excludes after the 2.5.11 release * address review comments * update stream-io.md with the correct dispatcher config key * mark ActorAttributes.Dispatcher#resolve as internal API * use the dispatche config key in ActorMaterializer * add private[akka] to the resolve methods
This commit is contained in:
parent
a13f5cab00
commit
0ecadf7235
17 changed files with 127 additions and 111 deletions
|
|
@ -19,9 +19,13 @@ class FlightRecorderSpec extends AkkaSpec {
|
|||
|
||||
"Flight Recorder" must {
|
||||
|
||||
"properly initialize AFR file when created" in withFlightRecorder { (recorder, reader, channel) ⇒
|
||||
"properly initialize AFR file when created" in withFlightRecorder { (_, reader, channel) ⇒
|
||||
channel.force(false)
|
||||
|
||||
// otherwise isAfter assertion below can randomly fail
|
||||
Thread.sleep(1)
|
||||
val currentTime = Instant.now()
|
||||
|
||||
reader.rereadStructure()
|
||||
|
||||
currentTime.isAfter(reader.structure.startTime) should be(true)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue