Skip to content

Commit

Permalink
Updated info around the Task return type (#14937)
Browse files Browse the repository at this point in the history
  • Loading branch information
pictos authored May 5, 2023
1 parent 3188c91 commit a721d8b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Core/src/Dispatching/DispatcherExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public static Task<T> DispatchAsync<T>(this IDispatcher dispatcher, Func<T> func
/// </summary>
/// <param name="dispatcher">The <see cref="IDispatcher"/> instance this method is called on.</param>
/// <param name="action">The method to be executed by the dispatcher.</param>
/// <returns><see langword="true"/> if the operation in <paramref name="action"/> was dispatched successfully, otherwise <see langword="false"/>.</returns>
/// <returns><see cref="Task"/>.</returns>
public static Task DispatchAsync(this IDispatcher dispatcher, Action action) =>
dispatcher.DispatchAsync(() =>
{
Expand Down Expand Up @@ -81,7 +81,7 @@ public static Task<T> DispatchAsync<T>(this IDispatcher dispatcher, Func<Task<T>
/// </summary>
/// <param name="dispatcher">The <see cref="IDispatcher"/> instance this method is called on.</param>
/// <param name="funcTask">The function to be executed by the dispatcher.</param>
/// <returns><see langword="true"/> if the operation in <paramref name="funcTask"/> was dispatched successfully, otherwise <see langword="false"/>.</returns>
/// <returns><see langword="Task"/>.</returns>
public static Task DispatchAsync(this IDispatcher dispatcher, Func<Task> funcTask) =>
dispatcher.DispatchAsync(async () =>
{
Expand Down Expand Up @@ -125,4 +125,4 @@ void OnTick(object? sender, EventArgs e)
}
}
}
}
}

0 comments on commit a721d8b

Please sign in to comment.