Skip to content

Dedupe ScopedContainer#getScoped calls#6

Merged
brianmcd merged 2 commits intomainfrom
scoped-promises
Jan 14, 2026
Merged

Dedupe ScopedContainer#getScoped calls#6
brianmcd merged 2 commits intomainfrom
scoped-promises

Conversation

@brianmcd
Copy link
Owner

Before, multiple calls to .getScoped for the same token would create multiple instances if they happened before the first call completed.

Now, multiple calls are pointed to as singular creation promise, ensuring only one instance is created.

@brianmcd brianmcd merged commit 816ba9d into main Jan 14, 2026
5 checks passed
@brianmcd brianmcd deleted the scoped-promises branch January 14, 2026 18:42
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