C# 异步线程休眠、阻塞

内容纲要

使用异步的方法中,不能直接使用

 Thread.Sleep(1000);

要使用

            await Task.Delay(1000);
点赞
  1. I am glad for writing to make you know what a magnificent encounter my wife's girl had studying your web site. She mastered several pieces, which include what it's like to possess an awesome helping nature to let other individuals very easily know precisely some multifaceted subject matter. You truly exceeded people's expectations. Thank you for presenting these powerful, trusted, informative and in addition fun tips about this topic to Kate.

发表评论

邮箱地址不会被公开。 必填项已用*标注

You must enable javascript to see captcha here!