Skip to content

Problem with goroutines and closures. Wrong function execution #266

@gerzin

Description

@gerzin

I'm running inside the dockerized version running the command from the readme,

Image

I should get 10 11 12 but instead I get 12 12 12. The code works fine if I make it into a standalone go program.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions