Browse Source

Minor doc edit

tags/docs-0.9
RogueException 9 years ago
parent
commit
84837bb97b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/Discord.Net/DiscordClient.cs

+ 2
- 2
src/Discord.Net/DiscordClient.cs View File

@@ -1040,13 +1040,13 @@ namespace Discord
#endregion

#region Async Wrapper
/// <summary> Blocking call that will execute the provided async method and wait until client has been manually stopped. This is mainly intended for use in console applications. </summary>
/// <summary> Blocking call that will execute the provided async method and wait until the client has been manually stopped. This is mainly intended for use in console applications. </summary>
public void ExecuteAndWait(Func<Task> asyncAction)
{
asyncAction().GetAwaiter().GetResult();
_disconnectedEvent.WaitOne();
}
/// <summary> Blocking call and wait until client has been manually stopped. This is mainly intended for use in console applications. </summary>
/// <summary> Blocking call and wait until the client has been manually stopped. This is mainly intended for use in console applications. </summary>
public void Wait()
{
_disconnectedEvent.WaitOne();


Loading…
Cancel
Save