Does await completely blocks the thread?

前端 未结 3 665
轮回少年
轮回少年 2020-12-18 09:06

When we use await in the code, generally the awaiters captures the context and use that as callback when the awaited task completed successfully. But, since await is general

3条回答
  •  难免孤独
    2020-12-18 09:22

    In short, no, it doesn't block your thread.

    More info: http://blog.stephencleary.com/2013/11/there-is-no-thread.html

提交回复
热议问题