internal static Actor Create(ActorPool owner, string key, out ActorHandle actorHandle) { var actor = new Actor(owner, key); actorHandle = new ActorHandle(actor); return(actor); }
internal bool TryCreateHandle(out ActorHandle?actorHandle) { lock (this) { if (_disposed) { actorHandle = default; return(false); } actorHandle = new ActorHandle(this); return(true); } }