tpl是什么( 四 )


[TypeForwardedFrom("System.Core, Version=3.5.0.0, Culture=Neutral, PublicKeyToken=b77a5c561934e089")] public delegate TResult Funcout TResult();原来是定义的委托,有多个重载,具体查看文档[https://docs.microsoft.com/en-us/dotnet/api/system.func-4?view=netframework-4.7.2]
实际上TPL之前,实现并发或多线程,基本都要使用委托 。
TIP:关于委托,大家可以查看(https://docs.microsoft.com/en-us/dotnet/csharp/tour-of-csharp/delegates) 。或者《细说委托》(https://www.cnblogs.com/laoyu/archive/2013/01/13/2859000.html)
参考
https://docs.microsoft.com/en-us/dotnet/standard/parallel-programming/https://docs.microsoft.com/en-us/dotnet/csharp/tour-of-csharp/delegateshttps://www.cnblogs.com/laoyu/archive/2013/01/13/2859000.html《C#并发经典实例》《CLR via C#》第3版关注 请关注微信公众号智客坊 。