How to use applyAsync() in javascript

I am using javascript code to fetch items of some itemType, I see two method in aras - apply() and applyAsync().

How do i use applyAsync()? An example of working code would be helpful.

Thanks

Vinay