Skip to content

Commit 26ab559

Browse files
authored
RunAsync waits for hosted services to stop (#7954)
1 parent 102e696 commit 26ab559

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xml/Microsoft.Extensions.Hosting/HostingAbstractionsHostExtensions.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
</Parameters>
5151
<Docs>
5252
<param name="host">The <see cref="T:Microsoft.Extensions.Hosting.IHost" /> to run.</param>
53-
<summary>Runs an application and blocks the calling thread until host shutdown.</summary>
53+
<summary>Runs an application and blocks the calling thread until host shutdown is triggered and all <see cref="T:Microsoft.Extensions.Hosting.IHostedService" /> instances are stopped.</summary>
5454
<remarks>To be added.</remarks>
5555
</Docs>
5656
</Member>
@@ -87,7 +87,7 @@
8787
<Docs>
8888
<param name="host">The <see cref="T:Microsoft.Extensions.Hosting.IHost" /> to run.</param>
8989
<param name="token">The token to trigger shutdown.</param>
90-
<summary>Runs an application and returns a Task that only completes when the token is triggered or shutdown is triggered.</summary>
90+
<summary>Runs an application and returns a Task that only completes when the token is triggered or shutdown is triggered and all <see cref="T:Microsoft.Extensions.Hosting.IHostedService" /> instances are stopped.</summary>
9191
<returns>The <see cref="T:System.Threading.Tasks.Task" /> that represents the asynchronous operation.</returns>
9292
<remarks>To be added.</remarks>
9393
</Docs>

0 commit comments

Comments
 (0)