asynchronous

Async image downloader

I have write a little class to perform the download of the images by using an NSURLConnection. The idea it's to delegate the download to this class to avoid to block the execution. So I pass the target UIImageView (by ref) and the url to the function and start the download: -(void)getImage:(UIImageView**)image formUrl:(NSString*)urlSt...

Google Map API v2 - GeoCoder - how to customize a marker ?

I try to add/customize markers with Gmap V2 by using this way (example) : for (var i in table){ var myvar = table[i]['text'] ; var myaddress = table[i]['address'] ; geocoder.getLatLng( myaddress , function(point) { alert(myvar) ; // here myvar is wrong // ... adding customer markers ... ...

How can I wait for an async WCF service to complete?

The question pretty much sums it up. I have a WCF service, and I want to wait until it finished to do something else, but it has to be until it finishes. My code looks something like this. Thanks! private void RequestGeoCoordinateFromAddress(string address) { GeocodeRequest geocodeRequest = new GeocodeRequest(); ...

Visual Studio Async CTP - How does it work?

Microsoft announced the Visual Studio Async CTP today that introduces the async and await keywords into C#/VB for asynchronous method execution. First I thought that the compiler translates the keywords into the creation of a thread but according to the white paper and Anders Hejlsberg's PDC presentation (at 31:00) the asynchronous ope...

asynchronous callback and function - in javascript and jquery

Hi guys, I need to call an address list to add markers on google map for each address. This operation should be performed as follows: 1-address list will be loaded into a list 2-each address will be searched to find lat and lng values 3-then a marker will be placed List might include an animation icon. All icons will be running in t...

Visual Studio Async CTP - Working with ASP.net MVC

The new Async framework released today at PDC10 looks really brilliant. I've had quite a bit of experience working with asynchronous applications/services and can say from experience that it is amazingly how simplified they have made the process. My question is - will this play well with ASP.net MVC asynchronous controllers? If it doe...

Why does WebClient.DownloadStringTaskAsync() block ? - new async API/syntax/CTP

For some reason there is a pause after the program below starts. I believe that WebClient().DownloadStringTaskAsync() is the cause. class Program { static void Main(string[] args) { AsyncReturnTask(); for (int i = 0; i < 15; i++) { Console.WriteLine(i); Thread.Sleep(100); ...

C# 5.0 async/await feature and Rx - Reactive Extensions

I am wondering what do the new C# 5.0 asynchronous features mean for Rx - Reactive Extensions? It seems to be not a replacement but they seem to overlap - Task and IObservable. ...

Async queries with DBD::Pg fail with: Cannot execute until previous async query has finished

Hello, I'm using CentOS 5.5 Linux (same as Redhat 5.5) with stock perl v5.8.8 and have installed DBD-Pg-2.17.1 via CPAN shell and I'm using postgresql-server-8.4.5-1PGDG.rhel5 and friends. I have prepared a simple test case demonstrating my problem - it is listed at the bottom. My code works ok, when I remove {pg_async => PG_ASYNC} M...