-
Notifications
You must be signed in to change notification settings - Fork 2
All #5
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
base: main_first_commit
Are you sure you want to change the base?
All #5
Conversation
Create REEDME.md
Add ktor version with getting links and backlinks
| var startPage = new Page(startPageTitle, null); | ||
|
|
||
| var res = processPage(startPage, endPageTitle, 0, maxDepth, visitedPages, executor); | ||
| if (res.isEmpty()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
orElseThrow )
| }); | ||
| }); | ||
|
|
||
| for (int i = 0; i < links.size(); i++) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would use StructuredConcurrency for this (https://www.youtube.com/watch?v=2nOj8MKHvmw&t=1972s)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. By the way, how can I reach the same logic with Kotlin Coroutines? I could not find something like awaitFirst for async deferred's, only awaitAll. I also could not find something like coroutineScope.result
| List<CompletableFuture<Void>> futures = new ArrayList<>(); | ||
|
|
||
| do { | ||
| for (int i = 0; i < 10; i++) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why 10?
Interfaces
add ReactorAlgoWikiGameImpl
No description provided.