docs: Use Timeout.Infinite instead of -1 so that intent is clearer (#1443)

This commit is contained in:
Arnav Borborah
2020-05-07 09:14:37 -04:00
committed by GitHub
parent 89b6b7e1a5
commit b6c981227d
3 changed files with 6 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
using System;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using Discord;
@@ -45,7 +46,7 @@ namespace _02_commands_framework
// Here we initialize the logic required to register our commands.
await services.GetRequiredService<CommandHandlingService>().InitializeAsync();
await Task.Delay(-1);
await Task.Delay(Timeout.Infinite);
}
}