MsetTimeout
Bun

method

http.ClientRequest.setTimeout

timeout: number,
callback?: () => void
): this;

Once a socket is assigned to this request and is connected socket.setTimeout() will be called.

@param timeout

Milliseconds before a request times out.

@param callback

Optional function to be called when a timeout occurs. Same as binding to the 'timeout' event.