akka/akka-core

Docs incorrectly state that SupervisorStrategy can't be changed

Aperta

#20.755 aperta il 8 giu 2016

 (7 commenti) (0 reazioni) (0 assegnatari)Scala (3547 fork)batch import
1 - triagedhelp wantedt:coret:docs

Metriche repository

Star
 (13.277 stelle)
Metriche merge PR
 (Merge medio 8g 19h) (10 PR mergiate in 30 g)

Descrizione

In the chapter about Fault Tolerance: "... each actor is the supervisor of its children, and as such each actor defines fault handling supervisor strategy. This strategy cannot be changed afterwards ..."

Looking at the ultimate source of truth – the code – I strongly doubt this is correct: Actor.supervisorStrategy is a method and from what I could see it is used "directly" (as opposed to receive).

Guida contributor