Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ RunWorkerAsync() [2/2]

void System.ComponentModel.BackgroundWorker.RunWorkerAsync ( object? argument)
inline

Definition at line 125 of file BackgroundWorker.cs.

126 {
127 if (_isRunning)
128 {
130 }
131 _isRunning = true;
132 _cancellationPending = false;
133 _asyncOperation = AsyncOperationManager.CreateOperation(null);
134 Task.Factory.StartNew(delegate(object arg)
135 {
137 }, argument, CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default);
138 }
static AsyncOperation CreateOperation(object userSuppliedState, SynchronizationContext syncContext)
static string BackgroundWorker_WorkerAlreadyRunning
Definition SR.cs:22
Definition SR.cs:7
static new TaskFactory< TResult > Factory
Definition Task.cs:56

References System.ComponentModel.BackgroundWorker._asyncOperation, System.ComponentModel.BackgroundWorker._cancellationPending, System.ComponentModel.BackgroundWorker._isRunning, System.SR.BackgroundWorker_WorkerAlreadyRunning, System.ComponentModel.AsyncOperationManager.CreateOperation(), System.Threading.Tasks.TaskScheduler.Default, System.Threading.Tasks.Task< TResult >.Factory, System.Threading.CancellationToken.None, and System.ComponentModel.BackgroundWorker.WorkerThreadStart().