Skip to content

A little confusion of Lock #109

@Reese1995

Description

@Reese1995

m.Mutex.RLock()

My question is : why lock here?
From my point of view, there is only one goroutine that executes this block of code. Also, the element in channel won't be changed once pushed to channel.

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