Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【BUG】ScopeUtils.supplyAsyncWithCurrentScope method can't pass Scope params #21

Open
CheJuJu opened this issue Jul 17, 2023 · 1 comment

Comments

@CheJuJu
Copy link

CheJuJu commented Jul 17, 2023

When I use this method(ScopeUtils.supplyAsyncWithCurrentScope ) to pass Scope to a new thread, i find it doesn't work.
This method does not pass the Scope of the current thread correctly. The main reason is that Scope.getCurrentScope() is written in a lamda expression, so it is executed in a new thread.
After simple rewriting, the scope can be passed correctly~
image

@CheJuJu
Copy link
Author

CheJuJu commented Jul 17, 2023

hope some updates~~

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

No branches or pull requests

1 participant