Skip to content

Expose stopped state #203

@alexanderbez

Description

@alexanderbez

Since Start and Stop can be called independently in two separate goroutines, it's possible to call Stop before Start executes c.stopped = false. Giving the caller the ability to check the state of the cache will allow them to not return from the goroutine that calls Start until stopped=true.

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