libp2p
    Preparing search index...

    Interface PerfOptions

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

    const controller = new AbortController()

    aLongRunningOperation({
    signal: controller.signal
    })

    // later

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

    Hierarchy (View Summary)

    Index

    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.

    false
    
    signal?: AbortSignal