Optimierung des Startvorgangs, lazy load, async im thread pool oder während des Startbildschirms vor dem Mainwindow.
CI / build-and-test (push) Canceled after 0s

This commit is contained in:
2026-09-02 21:46:01 +02:00
parent 94946ffefb
commit 7ef0c95a73
4 changed files with 20 additions and 19 deletions
@@ -38,7 +38,7 @@ public sealed class AnnualPlanSyncService : IDisposable
public async Task PollAsync()
{
if (!await _gate.WaitAsync(0)) return;
if (!await _gate.WaitAsync(0).ConfigureAwait(false)) return;
try
{
var url = _settings.GetIcalUrl();
@@ -47,7 +47,7 @@ public sealed class AnnualPlanSyncService : IDisposable
string icsText;
try
{
icsText = await _http.GetStringAsync(url);
icsText = await _http.GetStringAsync(url).ConfigureAwait(false);
}
catch (Exception ex)
{
@@ -59,7 +59,7 @@ public sealed class AnnualPlanSyncService : IDisposable
AnnualPlanPollResult result;
try
{
result = ProcessIcsText(icsText);
result = await Task.Run(() => ProcessIcsText(icsText)).ConfigureAwait(false);
}
catch (Exception ex)
{