Grow resizes the hashmap to a new size, gets rounded up to next power of 2
To double the size of the hashmap use newSize 0
This function returns immediately, the resize operation is done in a goroutine
No resizing is done in case of another resize operation already being in progress
Growth and map bucket policy is inspired from https://github.com/cornelk/hashmap
The
map.Grow
method's comment states:But commit d071dd5f749f86017a32bc126ea40eaade5f3dfc changed
map.Grow
to be sync, making this part of the comment inaccurate: