Skip to content

Browser: Extract out timeout handling #5337

@inancgumus

Description

@inancgumus

What

Handle timeout settings in a dedicated piece of code.

Why

We currently set timeouts like this:

// timeouts must be multiplied by milliseconds
..timeout = time.Duration(obj.Get(k).ToInteger()) * time.Millisecond

We repeat from multiple places in the code. It's error-prone, and we must remember to do this every time.

How

Add a dedicated package or function to handle timeout calculations.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions