using System.Collections;
using System.Collections.Generic;
using Cysharp.Threading.Tasks;
namespace BITKit.Pool
{
///
/// 对象池服务
///
public interface IPoolService
{
///
/// 生成对象
///
/// 可寻址路径
/// 类型
///
UniTask Spawn(string path) where T : class;
///
/// 回收对象
///
/// 对象实例
/// 可寻址路径
/// 类型
void Despawn(T obj,string path) where T : class;
///
/// 初始化,在此提前生成所有对象
///
///
UniTask InitializeAsync();
}
}