Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not linking caller to callee in a goroutine #173

Open
fgm opened this issue Feb 8, 2024 · 0 comments
Open

Not linking caller to callee in a goroutine #173

fgm opened this issue Feb 8, 2024 · 0 comments

Comments

@fgm
Copy link

fgm commented Feb 8, 2024

I have an example like this:

func Outer(name string) func() error {
  return func() error { 
    DoSomething(name)
    return nil 
  }
}

func main() {
  go Outer("some name")()
}

In the result, I get the main → Outer link and the Outer$1 → DoSomething link, but no main → Outer$1 link although func main is really invoking that lambda after it receives it from the Outer() call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant