Thread.sleep in a constructor
Since you can't await in a constructor, I'm calling an async method and just sleeping the thread for 10ms while the task is incomplete:
Is this ok, or is there a better way to do this?
... or should I just be designing my code better in the first place?
Is this ok, or is there a better way to do this?
... or should I just be designing my code better in the first place?