We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello 😃
In part of tutorial "Canceling the loading of contributors" on step 3 it is suggested to add 3-second delay.
And the actual code sample stands like that:
suspend fun loadContributorsConcurrent( service: GitHubService, req: RequestData ): List<User> = coroutineScope { // ... GlobalScope.async { log("starting loading for ${repo.name}") delay(3000) // load repo contributors } // ... }
I guess, it shouldn't be GlobalScope.async {} in this case. Therefore, if we will add GlobalScope, then loading won't be canceled.
GlobalScope.async {}
GlobalScope
The text was updated successfully, but these errors were encountered:
Just came here to point out same thing :)
Sorry, something went wrong.
No branches or pull requests
Hello 😃
In part of tutorial "Canceling the loading of contributors" on step 3 it is suggested to add 3-second delay.
And the actual code sample stands like that:
I guess, it shouldn't be
GlobalScope.async {}
in this case. Therefore, if we will addGlobalScope
, then loading won't be canceled.The text was updated successfully, but these errors were encountered: