Share this page

# web_concurrent_end

Marks the end of a concurrent group.

## C Language

    int web_concurrent_end( reserved );

Concurrent Group Functions - C Language

## Java Language

    int object.concurrent_end( reserved );

Concurrent Group Functions - Java | Java Syntax

Argument | Description
--- | ---
object | An expression evaluating to an object of type WebApi. Usually web for Java. See also Function and Constant Prefixes.
reserved | A parameter reserved for future use. Pass a NULL argument.

## Return Values

This function returns LR_PASS (0) on success, and LR_FAIL (1) on failure.

## Parameterization

Parameterization is not applicable to this function.

## General Information

The web_concurrent_end 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_concurrent_start and web_concurrent_end functions. Click Concurrent Groups 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. The number of items submitted in parallel depends on the browser being emulated.

This function is supported for all web scripts.

## C Example

In the following example, the web_concurrent_end function marks the end of a concurrent group.

Copy code

    web_concurrent_start(NULL);
        web_add_header(...);
        web_url(..., "URL=http://...url1", ...);
        web_add_header(...);
        web_add_header(...);
        web_url(..., "URL=http://...url2", ...);
    ...
    web_concurrent_end(NULL);

## Java Example

In the following example, the concurrent_end function marks the end of a concurrent group.

Copy code

    web.concurrent_start(null);
         web.add_header(...);
         web.url(..., "URL=http://...url1", new String[]{ ...});
         web.add_header(...);
         web.add_header(...);
         web.url(..., "URL=http://...url2", new String[]{ ...});
    ...
    web.concurrent_end(null);

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: