Minor doc edit
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user