---
title: "Comment by AthosXtreme on \"MVVM Source Generators: Advanced Scenarios\" | Hashnode"
description: "Hi Julian. For some reason I can´t get fully async, I mean, UI is mostly blocked and any loading spinner either freeze or don't show at all. Commenting your las"
url: "https://hashnode.com/posts/mvvm-source-generators-advanced-scenarios/63bbe459c8ae53670b9324d6/comment/67f724229f8d55cc15f7ccdd"
---

[Discussion](https://hashnode.com/posts/mvvm-source-generators-advanced-scenarios/63bbe459c8ae53670b9324d6)

Comment [MVVM Source Generators: Advanced Scenarios](https://hashnode.com/posts/mvvm-source-generators-advanced-scenarios/63bbe459c8ae53670b9324d6)

[AthosXtreme](https://hashnode.com/@AthosXtreme)

[Apr 10, 2025](https://hashnode.com/posts/mvvm-source-generators-advanced-scenarios/63bbe459c8ae53670b9324d6/comment/67f724229f8d55cc15f7ccdd)

Hi Julian. For some reason I can´t get fully async, I mean, UI is mostly blocked and any loading spinner either freeze or don't show at all.

Commenting your las code for clarity:

\[RelayCommand\] private async Task PrintAddressAsync() { //UI is blocked and IsRunning is false if (Copies < 1) return;

//This line releases the UI, IsRunning sets to true and it shows the loading spinner await Task.Delay(TimeSpan.FromSeconds(2));

//Now, the UI is blocked again and the spinner is frozen OnPrintAddress?.Invoke(FullAddress); }

The only way to get really async is wrapping everything in Task.Run.

Any thoughts?
