@@ -28,9 +28,9 @@ public static Task ExecuteOnUIThreadAsync(this DispatcherQueue dispatcher, Actio
2828 throw new ArgumentNullException ( nameof ( function ) ) ;
2929 }
3030
31- /* Run the function directly when we have thread access.
32- * Also reuse Task.CompletedTask in case of success,
33- * to skip an unnecessary heap allocation for every invocation. */
31+ // Run the function directly when we have thread access.
32+ // Also reuse Task.CompletedTask in case of success,
33+ // to skip an unnecessary heap allocation for every invocation.
3434 if ( dispatcher . HasThreadAccess )
3535 {
3636 try
@@ -124,10 +124,10 @@ public static Task ExecuteOnUIThreadAsync(this DispatcherQueue dispatcher, Func<
124124 throw new ArgumentNullException ( nameof ( function ) ) ;
125125 }
126126
127- /* If we have thread access, we can retrieve the task directly.
128- * We don't use ConfigureAwait(false) in this case, in order
129- * to let the caller continue its execution on the same thread
130- * after awaiting the task returned by this function. */
127+ // If we have thread access, we can retrieve the task directly.
128+ // We don't use ConfigureAwait(false) in this case, in order
129+ // to let the caller continue its execution on the same thread
130+ // after awaiting the task returned by this function.
131131 if ( dispatcher . HasThreadAccess )
132132 {
133133 try
0 commit comments