SIFR-ASYNC-0004 belongs to the Async effect and awaitability diagnostic family. It means: cPU-heavy function called directly from async context.
Why It Happens
Sifr tracks suspension and blocking effects statically. This diagnostic fires when async code either does not really suspend, awaits work that cannot suspend, or calls blocking/CPU-heavy work without an explicit offload boundary.Use
sifr --explain SIFR-ASYNC-0004 locally to see the renderer’s exact message template and any machine-applicable suggestions for the compiler version you are running.Erroneous Code
How To Fix It
Keep CPU-heavy work out of the async executor. Use the parallel/offload surface intended for owned CPU work.Fixed Code
Details
See the Error Codes index for the complete catalog.
