The spawn_with function previously provided &ActorRef<A> as an argument, which was good for performance, however will always need to be cloned into the returned future. Without cloning, you'd get some annoying compile errors.
This PR makes it an owned ActorRef<A> to simplify the usage of spawn_with.
The
spawn_with
function previously provided&ActorRef<A>
as an argument, which was good for performance, however will always need to be cloned into the returned future. Without cloning, you'd get some annoying compile errors.This PR makes it an owned
ActorRef<A>
to simplify the usage ofspawn_with
.