package
0.0.0-20231129065837-deba56b04b66
Repository: https://github.com/chipartem/k6.git
Documentation: pkg.go.dev

# Functions

AbortTestRun will cancel the test run context with the given reason if the provided context is actually a TestRuncontext or a child of one.
GetCancelReasonIfTestAborted returns a reason the Context was cancelled, if it was aborted with these functions.
NewScheduler creates and returns a new Scheduler instance, without initializing it beyond the bare minimum.
NewTestRunContext returns context.Context that can be aborted by calling the returned TestAbortFunc or by calling CancelTestRunContext() on the returned context or a sub-context of it.

# Structs

A Scheduler is in charge of most of the test execution - initializing VUs and executors, running setup() and teardown(), and actually starting the executors for the different scenarios at the appropriate times.