Upgrade to .net9
This commit is contained in:
parent
eb97cfb57c
commit
a1cb6592eb
15 changed files with 395 additions and 54 deletions
|
|
@ -2,11 +2,7 @@ namespace StitchATon2.Infra.Synchronization;
|
|||
|
||||
public static class TaskHelper
|
||||
{
|
||||
public static TaskFactory CreateTaskFactory()
|
||||
{
|
||||
return new TaskFactory(
|
||||
TaskCreationOptions.AttachedToParent,
|
||||
TaskContinuationOptions.ExecuteSynchronously
|
||||
);
|
||||
}
|
||||
public static readonly TaskFactory SynchronizedTaskFactory = new(
|
||||
TaskCreationOptions.LongRunning,
|
||||
TaskContinuationOptions.ExecuteSynchronously);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue