EventSourcedBehavior with CircuitBreaker

OK, this might be a very stupid question… haven’t used akka for a while… so I’m sorry:

The akka doc describes how to use a circuit breaker with an AkkaActor (see Circuit Breaker • Akka Documentation). So far so good.

I’m using akka typed now and I’m not sure how to instantiate a CircuitBreaker in a EventSourcedBehavior. The constructor requires a scala.concurrent.ExecutionContext and a akka.actor.Scheduler. Not sure where to take that from. I can get a scheduler (although typed) via ctx.getSystem().scheduler()…

Could not find any examples on the web…

Regards
Oliver

You can convert the ActorSystem back an forth : Coexistence • Akka Documentation