The MSDN docs say Thread.Sleep() can be used in a portable class library. The compiler says otherwise. What are my alternatives besides a spin-loo
Thread.Sleep()
System.Threading.Tasks.Task.Delay(ms).Wait();
works as a drop-in replacement for
System.Threading.Thread.Sleep(ms);
This works fine when porting a legacy code base.