Instead of relying on atomic ops to increment/decrement at the right time just use waitgroups to provide hard synchronization points.
Instead of relying on atomic ops to increment/decrement at the right time just use waitgroups to provide hard synchronization points.