Skip to content

Conversation

@potterdai
Copy link

This resembles sync.Map's LoadOrStore which is quite useful in some cases (set lazy value etc.)

@potterdai potterdai changed the title Revise SetIfAbsent to return actual value. Add SetOrGet function. Nov 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant