关于[await false & await true]的摘要:
waitables are the types on which await can be called. It happens due to “duck typing” – the only thing which makes type “awaitable” is an existence of the GetAwaiter() method that returns type implementing INotifyCompletion interface. That’s it.
收录时间: 2020-06-11 浏览量: 350 分类: C#开发