Reworked internal task engine for DiscordClient and WebSocket. Several other minor async fixes.

This commit is contained in:
RogueException
2015-12-11 19:07:55 -04:00
parent 2b8184f1ae
commit 5760e94d81
23 changed files with 523 additions and 489 deletions

View File

@@ -93,7 +93,7 @@ namespace Discord.Commands
}
internal void SetRunFunc(Action<CommandEventArgs> func)
{
_runFunc = e => { func(e); return TaskHelper.CompletedTask; };
_runFunc = TaskHelper.ToAsync(func);
}
internal Task Run(CommandEventArgs args)
{