Fixing Race Condition in NewCounter
Fixing race condition with publish. If two threads try to create the same counter they can both try and export the same variable. Doing this causes the second thread to panic.
Fixing race condition with publish. If two threads try to create the same counter they can both try and export the same variable. Doing this causes the second thread to panic.