public Job ( System.Action action, bool throwOnUiThread ) : System | ||
action | System.Action | The method to call. |
throwOnUiThread | bool | Do not wrap excepption in TaskCompletionSource |
return | System |
public Job(Action action, bool throwOnUiThread)
{
Action = action;
TaskCompletionSource = throwOnUiThread ? null : new TaskCompletionSource<object>();
}