Skip to content

Conversation

@kovidgoyal
Copy link
Owner

ubkr and others added 8 commits September 23, 2022 13:32
GetAnExportedObject returns either an existing object or a newly
created object for a specific path. This will solve the case where
we could get a mixup when two different goroutines competed to
create an object for a specific path. The result might still be
unsatifying but atleast its either or and not a mix.
GetOrAddExportedObject returns either an existing object or a newly
created object for a specific path. This will solve the case where
we could get a mixup when two different goroutines competed to
create an object for a specific path. The result might still be
unsatifying but atleast its either or and not a mix.
@kovidgoyal kovidgoyal merged commit d0a1a81 into kovidgoyal:master May 18, 2025
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.

2 participants