The issue is that you need an asynchronous function inside the block. Asynchronous functions have the <suspends> specifier. Print is not an asynchronous function, which is why you are getting an error. If you try with something like Sleep(1.0), it would work because it is an asynchronous function
2 Likes