Allows aborting long-lived operations

interface ResolveOptions {
    dns?: DNS;
    maxRecursiveDepth?: number;
    signal?: AbortSignal;
}

Hierarchy (view full)

Properties

dns?: DNS

An optional DNS resolver

maxRecursiveDepth?: number

When resolving DNSADDR Multiaddrs that resolve to other DNSADDR Multiaddrs, limit how many times we will recursively resolve them.

Default

32
signal?: AbortSignal