i have to invoke goroutuine /thread from a loop. Because of the loop, there are many go routines executes in parallel. If any routine/thread executed successfully, then i have to stop all other thread/routine.
There are several ways to implement this depending on what your goroutine is doing - keep in mind that a goroutine can’t be “killed” like a unix process. It has to be signalled to stop in some way. Can you describe what your goroutines will be doing? Making API calls? Running long computation? Running an infinite (or very large) loop? Something else?