例如,某个委托类型如下:
public delegate Task RequestDelegate(HttpContext context);
根据上面的签名,定义的两个 “示例” 函数如下:
【传统的】
public Task MyTestA(HttpContext context) {......}
【lambda的】
async (context)=> {......}
标签:异步,Task,函数,......,context,async,HttpContext,public From: https://www.cnblogs.com/changbaishan/p/17101452.html