Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ InvokeContinuation()

void System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.InvokeContinuation ( Action< object > continuation,
object state,
bool forceAsync,
bool requiresExecutionContextFlow )
inlineprivate

Definition at line 353 of file Socket.cs.

354 {
355 object scheduler = _scheduler;
356 _scheduler = null;
357 if (scheduler != null)
358 {
360 {
362 {
363 (Action<object>, object) tuple = ((Action<object>, object))s;
364 tuple.Item1(tuple.Item2);
365 }, (continuation, state));
366 }
367 else
368 {
370 }
371 }
372 else if (forceAsync)
373 {
375 {
377 }
378 else
379 {
381 }
382 }
383 else
384 {
386 }
387 }
static new TaskFactory< TResult > Factory
Definition Task.cs:56
static bool QueueUserWorkItem(WaitCallback callBack)
static bool UnsafeQueueUserWorkItem(WaitCallback callBack, object? state)

References System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs._scheduler, System.Threading.Tasks.Task< TResult >.Factory, System.Threading.CancellationToken.None, System.Threading.ThreadPool.QueueUserWorkItem(), System.s, System.scheduler, System.state, and System.Threading.ThreadPool.UnsafeQueueUserWorkItem().

Referenced by System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.OnCompleted(), and System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.OnCompleted().