fix(adminui): picker DisposeAsync is fire-and-forget per design
This commit is contained in:
+4
-2
@@ -189,11 +189,13 @@
|
||||
private string TruncatedError() =>
|
||||
_openError is null ? "" : (_openError.Length > 60 ? _openError[..60] + "…" : _openError);
|
||||
|
||||
public async ValueTask DisposeAsync()
|
||||
public ValueTask DisposeAsync()
|
||||
{
|
||||
if (_token != Guid.Empty)
|
||||
{
|
||||
try { await BrowserService.CloseAsync(_token); } catch { /* circuit teardown */ }
|
||||
// Fire-and-forget — don't block circuit teardown on a slow remote.
|
||||
_ = BrowserService.CloseAsync(_token);
|
||||
}
|
||||
return ValueTask.CompletedTask;
|
||||
}
|
||||
}
|
||||
|
||||
+4
-2
@@ -112,11 +112,13 @@
|
||||
private string TruncatedError() =>
|
||||
_openError is null ? "" : (_openError.Length > 60 ? _openError[..60] + "…" : _openError);
|
||||
|
||||
public async ValueTask DisposeAsync()
|
||||
public ValueTask DisposeAsync()
|
||||
{
|
||||
if (_token != Guid.Empty)
|
||||
{
|
||||
try { await BrowserService.CloseAsync(_token); } catch { /* circuit teardown */ }
|
||||
// Fire-and-forget — don't block circuit teardown on a slow remote.
|
||||
_ = BrowserService.CloseAsync(_token);
|
||||
}
|
||||
return ValueTask.CompletedTask;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user