any plans to add a go1.23 iterator to sync.Map?

117 views
Skip to first unread message

Amnon

unread,
Aug 21, 2024, 9:27:32 AM8/21/24
to golang-nuts
It would be cool to replace our m.Range() calls with plain for-loops.

Diego Joss

unread,
Aug 21, 2024, 9:45:38 AM8/21/24
to Amnon, golang-nuts
It's actually already possible: https://go.dev/play/p/75YYs1R94I2

--
Diego
Reply all
Reply to author
Forward
0 new messages