Make the UpdateRecevier not wait for each handler
This commit is contained in:
@@ -63,11 +63,12 @@ namespace Telegrator.Polling
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
request.Offset = update.Id + 1;
|
request.Offset = update.Id + 1;
|
||||||
await updateHandler.HandleUpdateAsync(Client, update, cancellationToken).ConfigureAwait(continueOnCapturedContext: false);
|
_ = updateHandler.HandleUpdateAsync(Client, update, cancellationToken);
|
||||||
}
|
}
|
||||||
catch (Exception exception2)
|
catch (Exception exception2)
|
||||||
{
|
{
|
||||||
await updateHandler.HandleErrorAsync(Client, exception2, HandleErrorSource.HandleUpdateError, cancellationToken).ConfigureAwait(false);
|
await updateHandler.HandleErrorAsync(Client, exception2,
|
||||||
|
HandleErrorSource.HandleUpdateError, cancellationToken).ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user