gobwas/pool

Is it thread safe?

Closed this issue · 1 comments

Seeing the code, you are using a map to get sync.Pool according with their size. AFAIK the golang map is not thread safe, or i'm wrong?

Hi @skrater.

That map is read-only, e.g. it is not being changed over time. So that is why it is thread safe.