Executes an async Task method which has a void return value synchronously USAGE: AsyncUtil.RunSync(() => AsyncMethod());
public static void RunSync(Func<Task> task, CancellationToken cancellationToken, TaskCreationOptions taskCreation, TaskContinuationOptions taskContinuation, TaskScheduler taskScheduler)
Parameters
task
Task method to execute
cancellationToken
taskCreation
taskContinuation
taskScheduler
Overloads:
See also:
Class AsyncUtils© West Wind Technologies, 1996-2024 • Updated: 06/29/24
Comment or report problem with topic