λ
Size: a a a
λ
D
λ
λ
D
D
λ
λ
D
AF
D
AF
D
AF
Future::andThen
. Там никакой магии. Лишь бы не блокироваться на фьюче в актореdef pipeTo(recipient: ActorRef)(implicit sender: ActorRef = Actor.noSender): Future[T] = {
future.andThen {
case Success(r) => recipient ! r
case Failure(f) => recipient ! Status.Failure(f)
}
}
D
VE
Oℕ
Oℕ
Oℕ
N