Allow std::move ActorId in send_closure
GitOrigin-RevId: 452924630a41d336006d49b63880e244a6be280f
This commit is contained in:
parent
eb4c85a797
commit
8fd13291d0
@ -181,6 +181,10 @@ template <class T>
|
||||
ActorRef::ActorRef(const ActorId<T> &actor_id) : actor_id_(actor_id) {
|
||||
}
|
||||
template <class T>
|
||||
ActorRef::ActorRef(const ActorId<T> &&actor_id) : actor_id_(actor_id) {
|
||||
actor_id.clear();
|
||||
}
|
||||
template <class T>
|
||||
ActorRef::ActorRef(const ActorShared<T> &actor_id) : actor_id_(actor_id.get()), token_(actor_id.token()) {
|
||||
}
|
||||
template <class T>
|
||||
|
Reference in New Issue
Block a user