-
Notifications
You must be signed in to change notification settings - Fork 32
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
Reduce GlobalScope
usage
#461
Comments
I wish I could help with coroutines, but I still haven't used them enough to be familiar with :/ |
The GlobalScope is indeed a bad practice. The good practice is to create a scope for your application and pass it explicitly where you need it. Could you give links to places in question, or we can plan an online session to discuss that. |
How about this one? The intention there is to invoke a lambda asynchronously when a new Node is added. Edit: Pasted wrong URL first. D'oh. |
I don't understand what this line does. Looks like it just assigned a field to itself. |
You probably wanted to link to something like
And it is indeed not good. If the process is long, the structured concurrency is broken here. You need to provide a scope for such operations. Pass it as a parameter or store it in the Node .
|
For concurrency, scenery uses
GlobalScope
is a few places, which is discouraged now.A better solution for this needs to be found. Maybe @elect86 or @altavir have suggestions 😎
The text was updated successfully, but these errors were encountered: