Skip to content

Commit

Permalink
edit factor to run
Browse files Browse the repository at this point in the history
  • Loading branch information
S.monzavi authored and S.monzavi committed Apr 11, 2023
1 parent a55aca6 commit f07e5fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Host.Research/MyClass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public int Do()

public Task<int> DoAsync()
{
return Task.Factory.StartNew(() => { return 1; });
return Task.Run(() => { return 1; });
}
}
}
2 changes: 1 addition & 1 deletion Host.Research/MyClassSecurity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public int DoWithSecurity(User user)

public Task<int> DoWithSecurityAsync(User user)
{
return Task.Factory.StartNew(() => { return 1; });
return Task.Run(() => { return 1; });
}
}
}

0 comments on commit f07e5fb

Please sign in to comment.