Windows.UI.Core.CoreDispatcher.RunAsync C# (CSharp) Method

RunAsync() public method

public RunAsync ( [ priority, [ agileCallback ) : IAsyncAction
priority [
agileCallback [
return IAsyncAction
		public extern IAsyncAction RunAsync([In] CoreDispatcherPriority priority, [In] DispatchedHandler agileCallback);
		public extern IAsyncAction RunIdleAsync([In] IdleDispatchedHandler agileCallback);

Usage Example

Example #1
1
        public static async void ExecuteAsync(CoreDispatcher dispatcher)
        {
            var task = dispatcher.RunAsync(CoreDispatcherPriority.High, ()
                 => CmdGo.Instance.Execute(null));

            //TaskScheduler.Current
            await task;
        }
All Usage Examples Of Windows.UI.Core.CoreDispatcher::RunAsync