// 从服务器下载网页内容,需提供完整url,非AB(不计引用计数、不缓存),Creater使用后记得回收 public ResourceWebRequester DownloadWebResourceAsync(string url) { var creater = ResourceWebRequester.Get(); creater.Init(url, url, new DownloadHandlerBuffer(), true); webRequesterQueue.Enqueue(creater); return creater; }
public static void Recycle(ResourceWebRequester creater) { pool.Enqueue(creater); }