Skip to content

Long-running tasks should listen to context cancellations #41

@miparnisari

Description

@miparnisari

https://go.dev/blog/context

For example when writing a web server (https://grpc.io/docs/languages/go/quickstart/#update-the-server), every function receives ctx as a first parameter.

https://pkg.go.dev/context

The chain of function calls between them must propagate the Context

https://stackoverflow.com/q/61707002/1623249

The common pattern is to pass it to every method. Be explicit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions