I’m using Parse to do my leaderboards and I like the way they use System.Threading.Tasks to handle asynchronicity, so I thought I’d use the same pattern for some of my own stuff.
But I can’t get it to work. Sample code from here (The Basics of Task Parallelism via C# - CodeProject) and here (7 ways to start a Task in .NET C# | Exercises in .NET with Andras Nemes) doesn’t compile, no matter what I try. It will complain about the abstract Task class, or that I’m passing in the wrong number of parameters to a Task<> constructor, or that .Factory is inaccessible to do its protection level.
I’m guessing Unity is preventing us from using this stuff, but how come Parse was able to use it?