Currently, it's dangerous to use Chewy with dry-effects, because it runs fibers that reset Thread local state. This PR isolates thread-local variables access, so it could be easily extended.
After isolating them, we can provide dry-effects integration.
Currently, it's dangerous to use Chewy with dry-effects, because it runs fibers that reset Thread local state. This PR isolates thread-local variables access, so it could be easily extended.
After isolating them, we can provide dry-effects integration.
See https://github.com/dry-rb/dry-effects/issues/82 for the details.
Before submitting the PR make sure the following are checked:
[Fix #issue-number]
(if the related issue exists).master
(if not - rebase it).