Skip to content

--deadline is a misnomer #655

Closed
Closed
@variadico

Description

@variadico

--deadline should be called --timeout. A timeout is a relative time like what we're supposed to pass to the --deadline flag. An actual deadline is an absolute time.

Timeout: finish in 10 seconds.
Deadline: finish at 7:15:35PM.

https://news.ycombinator.com/item?id=9948203
https://golang.org/pkg/context/#WithDeadline

This was confusing to me when I was reading the docs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions