4 ms·
The go statement could return a handle to the go routine. There can be a cancel magic function that cancels the go routine. You can regain the task local storag
by bbatha 6y ago
The go statement could return a handle to the go routine. There can be a cancel magic function that cancels the go routine. You can regain the task local storage by using this handle as a key into a map of task data. This would have been a breaking change particularly in CGo threads but it’s a vastly simpler model for the user.