games, gadget, code and tech
System.Threading.Tasks.Task<string> task = System.Threading.Tasks.Task.Factory.StartNew(() => myMethod(myString)); if (task.Status == System.Threading.Tasks.TaskStatus.RanToCompletion) { //is done, do something! //use result task.Result }
No comments:
Post a Comment