Reputation: 25
I want to use Task.Factory.StartNew() and invoke a named (non-anonymous) function into the StartNew(), Because I face an error that says
public static void Request<P, R>(RequestDelegateParamResult<P, R> del, P parameters, out R result, bool showError = true)
{
...
TaskFactory.StartNew(() => { del(parameters, out result) });
...
}
What's your solution?
Thanks
Upvotes: 0
Views: 129