@@ -15,7 +15,7 @@ public partial class STATask
15
15
/// Schedules the specified work to execute in a new background thread initialized with STA state.
16
16
/// </summary>
17
17
/// <param name="action">The work to execute in the STA thread.</param>
18
- /// <param name="logger">Optional logger to capture any exception that occurs during execution.</param>
18
+ /// <param name="logger">A logger to capture any exception that occurs during execution.</param>
19
19
/// <returns>A <see cref="Task"/> that represents the work scheduled to execute in the STA thread.</returns>
20
20
public static Task Run ( Action action , ILogger logger )
21
21
{
@@ -54,7 +54,7 @@ public static Task Run(Action action, ILogger logger)
54
54
/// </summary>
55
55
/// <typeparam name="T">The type of the result returned by the function.</typeparam>
56
56
/// <param name="func">The work to execute in the STA thread.</param>
57
- /// <param name="logger">Optional logger to capture any exception that occurs during execution.</param>
57
+ /// <param name="logger">A logger to capture any exception that occurs during execution.</param>
58
58
/// <returns>A <see cref="Task"/> that represents the work scheduled to execute in the STA thread.</returns>
59
59
public static Task < T > Run < T > ( Func < T > func , ILogger logger )
60
60
{
@@ -91,7 +91,7 @@ public static Task<T> Run<T>(Func<T> func, ILogger logger)
91
91
/// Schedules the specified work to execute in a new background thread initialized with STA state.
92
92
/// </summary>
93
93
/// <param name="func">The work to execute in the STA thread.</param>
94
- /// <param name="logger">Optional logger to capture any exception that occurs during execution.</param>
94
+ /// <param name="logger">A logger to capture any exception that occurs during execution.</param>
95
95
/// <returns>A <see cref="Task"/> that represents the work scheduled to execute in the STA thread.</returns>
96
96
public static Task Run ( Func < Task > func , ILogger logger )
97
97
{
@@ -130,7 +130,7 @@ public static Task Run(Func<Task> func, ILogger logger)
130
130
/// </summary>
131
131
/// <typeparam name="T">The type of the result returned by the function.</typeparam>
132
132
/// <param name="func">The work to execute in the STA thread.</param>
133
- /// <param name="logger">Optional logger to capture any exception that occurs during execution.</param>
133
+ /// <param name="logger">A logger to capture any exception that occurs during execution.</param>
134
134
/// <returns>A <see cref="Task"/> that represents the work scheduled to execute in the STA thread.</returns>
135
135
public static Task < T ? > Run < T > ( Func < Task < T > > func , ILogger logger )
136
136
{
0 commit comments