JavaScript Functions > Alphabetical Listing of Web Functions > web.concurrentEnd

web.concurrentEnd

Marks the end of a concurrent group.

Syntax

web.concurrentEnd( "0" );  
Argument
Description
Reserved
A parameter reserved for future use. Pass "0".

Return Values

Not applicable

Parameterization

Parameterization is not applicable to this function.

General Information

The web.concurrentEnd function marks the end of a concurrent group and initiates the concurrent execution of all the functions that were registered as concurrent—those between the web.concurrentStart and web.concurrentEnd functions. Click Concurrent Functions for a list of functions that may be included within a concurrent group.

Note that the functions included within the concurrent group are not executed immediately. Instead they are registered for concurrent execution. When the concurrent group is closed, all of the functions registered as concurrent are executed together. However, the number of steps that can be executed concurrently is limited by the Concurrent Connection entry in the Network tab of the run-time settings.

Example

	web.concurrentStart("GetImages");

	web.customRequest(
		{
			name : 'logo.gif', 
			url : 'http://kalimanjaro/Images/logo.gif', 
			method : 'GET', 
			resource : 1, 
			recContentType : 'image/gif', 
			referer : 'http://kalimanjaro/', 
			snapshot : 't2.inf'
		}
	);

	web.customRequest(
		{
			name : 'ganim5b.gif', 
			url : 'http://kalimanjaro/Images/ganim5b.gif', 
			method : 'GET', 
			resource : 1, 
			recContentType : 'image/gif', 
			referer : 'http://kalimanjaro/', 
			snapshot : 't3.inf'
		}
	);

	web.concurrentEnd("0");