UNI023: Blocking wait on Task
What and why
.Result / .Wait() / .GetAwaiter().GetResult() blocking wait on Task/ValueTask/UniTask (can deadlock or stall the frame on the main thread).
Blocking on tasks can deadlock or stall the main thread.
How to fix: await the task; propagate async through the call chain.
Fix guidance
Await asynchronously instead of blocking on .Result or .Wait().
Tags
reliability, async
Suppression
Use // unilyze-disable-next-line UNI023 -- reason immediately before the reported line.
These detector findings are line-based, so separate overload occurrences can be suppressed independently.
For project-wide suppression, use "rules": { "UNI023": "off" }; use a baseline to freeze existing findings while reporting new ones.