RestCode / WebApiProxy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

question about Task.Run generated by the template

lust4life opened this issue · comments

commented
var result = Task.Run(() => <#= method.Name #>Async(<#=parameterNameList#>)).Result; 

I am just wondering why use a Task.Run method wrapper an async method.
thank you for explanation.

Honestly, I really don't know how that got there :) the .Result should be sufficient

commented

thx :D

commented

i make a pr #54 for generic type code generation.
FYI.