You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// color=alwaysscoped_override(true, || {// do stuff here?});// color=neverscoped_override(false, || {// do stuff here?});
This would need to be behind a feature flag as it requires std for thread-local variables, but outside of that this isn't too bad. For the most part it should be able to reuse a lot of the code from #34, but replace the static with a thread local.
Outstanding Design Questions
Should scoped overrides or global overrides take precedence?
The text was updated successfully, but these errors were encountered:
Should scoped overrides or global overrides take precedence?
I would personally expect that thread-local overrides, being more local than process-wide overrides, take precedence. (Similarly, task-local overrides should take precedence over thread-local ones I think)
Moving this from #33 to its own issue.
One considered API design:
This would need to be behind a feature flag as it requires std for thread-local variables, but outside of that this isn't too bad. For the most part it should be able to reuse a lot of the code from #34, but replace the static with a thread local.
Outstanding Design Questions
The text was updated successfully, but these errors were encountered: