Skip to content

Watch should take a context.Context #340

@cedws

Description

@cedws

Watch() can be implemented on providers to enable watching configuration for changes.

Watching configuration requires creating a background goroutine since this function is not expected to block forever. However, there is no way to cancel this goroutine since Watch() does not take a context.Context. The goroutine will run for the lifetime of the the program unless aborted via some other mechanism.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions