scope
scope copied to clipboard
bugfix-[supplyAsyncWithCurrentScope can't pass current Scope]
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~