标签:logs rod consumer received oid sleep listener star ret
public Task DoWorkAsync(DoWorkCompletedCallback completedCallback) { return Task.Factory.StartNew( { Parallel.Foreach //call callback manually completedCallback(); }); }
Task.Factory.StartNew( { //do work } ).ContinueWith(completedCallback);
Task newTask = Task.Factory.StartNew( { //do work }); newTask.ContinueWith(onCompleted);
4. consumer-publisher patterns
Producer Consumer problem
标签:logs rod consumer received oid sleep listener star ret
原文地址:http://www.cnblogs.com/xietianjiao/p/7517251.html