Python微信订餐小程序课程视频
https://edu.csdn.net/course/detail/36074
Python实战量化交易理财系统
https://edu.csdn.net/course/detail/35475
上一篇末尾提到了Awaiter这个类型,上一篇说了,能await的对象,必须包含GetAwaiter()方法,不清楚的朋友可以看上篇文章。那么,Awaiter到底有什么特别之处呢?
首先,从上篇文章我们知道,一个Awaiter必须实现INotifyCompletion接口,这个接口定义如下:
Copynamespace System.Runtime.CompilerServices
{
///
/// Represents an operation that will schedule continuations when the operation completes.
///
public interface INotifyCompletion
{
/// Schedules the continuation action to be invoked when the instance completes.
/// The action to invoke when the operation completes.
/// The argument is null (Nothing in Visual Basic).
void OnCompleted(Action