Calling an Async function multiple times
<p>I have an Async function</p>

<pre><code>function AsyncFunc(args){
    //does some async work here
}
</code></pre>

<p>then I call this function multiple times in a <code>for</code> loop:</p>

<pre><code>for(var i=0; i&lt;10; i++)
{
    AsyncFunc(i);
}
</code></pre>

<p>Does this create multiple copies of the <code>AsyncFunc</code>? or are the local variables defined in <code>AsyncFunc</code> getting overridden by the subsequent calls? </p>

<p>EDIT</p>

<p>Suppose the <code>AsyncFunc</code> does following:</p>

<pre><code>function AsyncFunc(args){
    $.get(args.url, function(data){
        args.data = data;
    });
}
</code></pre>

<p>then I call this function multiple times in a for loop:</p>

<pre><code>for(var i=0; i&lt;10; i++)
{
    AsyncFunc(args_object_with_a_different_url);
}
</code></pre>

<p>Now would <code>data</code> go into their corresponding args object? In other words, would the callback attach to the copy of the function in which the ajax request was initiated?</p>
