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
@@ -67,7 +67,7 @@ public class UntisSyncService : IDisposable
public async Task PollAsync()
{
if (!await _gate.WaitAsync(0)) return;
if (!await _gate.WaitAsync(0).ConfigureAwait(false)) return;
try
{
var url = _settings.GetIcalUrl();
@@ -76,7 +76,7 @@ public class UntisSyncService : IDisposable
string icsText;
try
{
icsText = await _http.GetStringAsync(url);
icsText = await _http.GetStringAsync(url).ConfigureAwait(false);
}
catch (Exception ex)
{
@@ -88,7 +88,7 @@ public class UntisSyncService : IDisposable
UntisPollResult result;
try
{
result = ProcessIcsText(icsText);
result = await Task.Run(() => ProcessIcsText(icsText)).ConfigureAwait(false);
}
catch (Exception ex)
{