草庐IT

ReverseGecode

全部标签

c# - CLGeocoder.ReverseGecode 在 50 个请求后挂起

首先是我的代码:privateCLGeocoder_coder=newCLGeocoder();privatevoidTestWithTpl(){Console.WriteLine("Teststarted");vartestLocation=newCLLocation(52.268157,-1.4209);Task.Factory.StartNew(async()=>{for(vari=0;i{for(vari=0;i如您所见,TestWithTpl将使用异步和等待,而TestDefault仅使用ReverseGeocodeLocationAsync的结果。无论我使用两者中的哪一种方