WIP: Make the UpdateRecevier not wait for each handler #4

Closed
XSilverTH wants to merge 3 commits from parallelhandler into master
Showing only changes of commit 6074ee83a1 - Show all commits
+3 -2
View File
@@ -63,11 +63,12 @@ namespace Telegrator.Polling
try
{
request.Offset = update.Id + 1;
await updateHandler.HandleUpdateAsync(Client, update, cancellationToken).ConfigureAwait(continueOnCapturedContext: false);
_ = updateHandler.HandleUpdateAsync(Client, update, cancellationToken);
}
catch (Exception exception2)
{
await updateHandler.HandleErrorAsync(Client, exception2, HandleErrorSource.HandleUpdateError, cancellationToken).ConfigureAwait(false);
await updateHandler.HandleErrorAsync(Client, exception2,
HandleErrorSource.HandleUpdateError, cancellationToken).ConfigureAwait(false);
}
}
}