0

How to return result from delegate that performing in thread? My method:

public TR Calculate(Func<T,TR> method, T opr)
{
    Thread t = new Thread(() => method(opr));
    t.Start();
    return (result of performing of method);
}

If it isn't clear for understanding, please give me advice for improving my question. Thanks

Peter Csala
  • 17,736
  • 16
  • 35
  • 75

0 Answers0