Skip to content

race condition when $$ used concurrently#816

Merged
mattbaileyuk merged 1 commit into
masterfrom
concurrent
Jul 15, 2026
Merged

race condition when $$ used concurrently#816
mattbaileyuk merged 1 commit into
masterfrom
concurrent

Conversation

@andrew-coleman

Copy link
Copy Markdown
Member

If the root variable reference $$ is used in multiple concurrent invocations of a single compiled expression, then a race condition exists. This is because the $$ binding is stored in the global expression environment rather than the evaluation environment.

Resolves #804

If the root variable reference `$$` is used in multiple
concurrent invocations of a single compiled expression,
then a race condition exists.  This is because the `$$`
binding is stored in the global expression environment
rather than the evaluation environment.
@mattbaileyuk
mattbaileyuk merged commit df63a7c into master Jul 15, 2026
8 checks passed
@mattbaileyuk
mattbaileyuk deleted the concurrent branch July 15, 2026 14:54
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.

Concurrent evaluate() calls lead to unexpected results

2 participants