コード例 #1
0
ファイル: Dispatcher.cs プロジェクト: vebin/Perspex
 /// <summary>
 /// Invokes a method on the dispatcher thread.
 /// </summary>
 /// <param name="action">The method.</param>
 /// <param name="priority">The priority with which to invoke the method.</param>
 /// <returns>A task that can be used to track the method's execution.</returns>
 public Task InvokeTaskAsync(Action action, DispatcherPriority priority = DispatcherPriority.Normal)
 {
     return(_jobRunner?.InvokeAsync(action, priority));
 }