public ETTask <T> FindOne <T>(long id) where T : ComponentWithId
        {
            var       type  = typeof(T);
            CacheBase cache = null;

            caches.TryGetValue(type, out cache);
            ETTaskCompletionSource <T> tcs  = new ETTaskCompletionSource <T>();
            CacheFindOneTask <T>       task = ComponentFactory.CreateWithId <CacheFindOneTask <T>, CacheBase, ETTaskCompletionSource <T> >(id, cache, tcs);

            this.tasks[(int)((ulong)task.Id % taskCount)].Add(task);
            return(tcs.Task);
        }
 public override void Awake(CacheFindOneTask <ComponentWithId> self, CacheBase proxy, ETTaskCompletionSource <ComponentWithId> tcs)
 {
     self.proxy = proxy;
     self.Tcs   = tcs;
 }