Interface PerfOptions

An object that contains an AbortSignal as the optional signal property.

Example

const controller = new AbortController()

aLongRunningOperation({
signal: controller.signal
})

// later

controller.abort()
interface PerfOptions {
    reuseExistingConnection?: boolean;
    signal?: AbortSignal;
}

Hierarchy (view full)

Properties

reuseExistingConnection?: boolean

By default measuring perf should include the time it takes to establish a connection, so a new connection will be opened for every performance run.

To override this and re-use an existing connection if one is present, pass true here.

Default

false
signal?: AbortSignal