Share this page

# web_concurrent_start

Marks the beginning of a concurrent group.

## C Language

    int web_concurrent_start( [char *ConcurrentGroupName,] NULL );

Concurrent Group Functions - C Language

## Java Language

    int object.concurrent_start( [String ConcurrentGroupName,] null );

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.
NULL | A marker indicating the end of the parameter list.

## Return Values

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

## Parameterization

All string arguments (char type) can be parameterized using standard parameterization.

## General Information

The web_concurrent_start function marks the beginning of a concurrent group. All functions within the group are executed concurrently. The end of the group is marked by the web_concurrent_end function. Click Concurrent Groups for a list of functions that can 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_start function marks the beginning of a concurrent group.

    web_concurrent_start("DocParts",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_start function marks the beginning of a concurrent group.

    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 Function Reference 26.1 All View Local Help Center View Online Help Center Version: