"Fossies" - the Fresh Open Source Software Archive

Member "wrk-4.2.0/scripts/stop.lua" (7 Feb 2021, 183 Bytes) of package /linux/www/wrk-4.2.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Lua source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 -- example script that demonstrates use of thread:stop()
    2 
    3 local counter = 1
    4 
    5 function response()
    6    if counter == 100 then
    7       wrk.thread:stop()
    8    end
    9    counter = counter + 1
   10 end