public void Add(AsyncReply <T> reply) { lock (queueLock) list.Add(reply); resultReady = false; reply.Then(processQueue); }
public void Add(AsyncReply reply) { if (!sealedBag) { results.Add(default(T)); replies.Add(reply); } //results.Add(reply, default(T)); }
public void Remove(AsyncReply <T> reply) { lock (queueLock) list.Remove(reply); processQueue(default(T)); }