@gatling.io/core
Version:
Gatling JS is a JavaScript/TypeScript interface for the [Gatling load testing tool](https://gatling.io/).
16 lines (15 loc) • 637 B
TypeScript
import JvmForever = io.gatling.javaapi.core.loop.Forever;
import { On } from "./on";
export interface ForeverFunction<T extends Forever<T>> {
/**
* Define a loop that will iterate forever.
*
* @param counterName - the name of the loop counter, as stored in the Session
* @returns a DSL component for defining the loop content
*/
(counterName?: string): On<T>;
}
export interface Forever<T extends Forever<T>> {
forever: ForeverFunction<T>;
}
export declare const foreverImpl: <J2, J1 extends JvmForever<J2, any>, T extends Forever<T>>(jvmForever: J1, wrap: (wrapped: J2) => T) => ForeverFunction<T>;