示例#1
0
 /// <summary>
 /// Release the item back to the Pool
 /// </summary>
 /// <param name="item">the item to release</param>
 /// <returns>void</returns>
 public async Task ReleaseItem(T item)
 {
     await Task.Run(() =>
     {
         var found = ItemPool.First(i => i.Equals(item));
         found?.Deactivate();
     });
 }