Thread.Sleep() in a Portable Class Library

前端 未结 5 2050
长发绾君心
长发绾君心 2021-02-18 15:05

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

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-18 15:30

    Try waiting on a http://msdn.microsoft.com/en-us/library/system.threading.manualresetevent.aspx with a timeout.

提交回复
热议问题