UNPKG

@gatling.io/core

Version:

Gatling JS is a JavaScript/TypeScript interface for the [Gatling load testing tool](https://gatling.io/).

18 lines (17 loc) 805 B
import { Executable } from "./execs"; import JvmRoundRobinSwitch = io.gatling.javaapi.core.condition.RoundRobinSwitch; export interface On<T> { on(executable: Executable<any>, ...executables: Executable<any>[]): T; } export interface RoundRobinSwitchFunction<T extends RoundRobinSwitch<T>> { /** * Execute one of the "choices" in a round-robin fashion. Round-robin is global, not per virtual user. * * @returns a new StructureBuilder */ (): On<T>; } export interface RoundRobinSwitch<T extends RoundRobinSwitch<T>> { roundRobinSwitch: RoundRobinSwitchFunction<T>; } export declare const roundRobinSwitchImpl: <J2, J1 extends JvmRoundRobinSwitch<J2, any>, T extends RoundRobinSwitch<T>>(jvmRoundRobinSwitch: J1, wrap: (wrapped: J2) => T) => RoundRobinSwitchFunction<T>;