Could someone please give clarification values returned from the goroutine. Does the returned value from the goroutine is getting stored on stake.
example :
Quoting from the Go Language specification: Go statements:
If the function has any return values, they are discarded when the function completes.
So it is allowed to execute functions with return values as goroutines - there is nothing wrong with it, and the specification clearly states that their return values are simply discarded, it will not cause any error but you won't get it in the usually way (as you would by directly calling the function).