Add pattern: Timer and TimerTask → ScheduledExecutorService - #211
Merged
Conversation
Copilot
AI
changed the title
[WIP] Replace Timer and TimerTask with ScheduledExecutorService
Add pattern: Timer and TimerTask → ScheduledExecutorService
Aug 27, 2026
brunoborges
marked this pull request as ready for review
August 27, 2026 16:04
Contributor
There was a problem hiding this comment.
Pull request overview
Adds the Timer/TimerTask migration pattern to the concurrency catalog.
Changes:
- Adds pattern content and proof script.
- Updates navigation and social publishing artifacts.
- Adds translations for all 13 non-English locales.
Show a summary per file
| File | Description |
|---|---|
content/concurrency/timer-task-to-scheduled-executor.yaml |
Defines the new pattern. |
content/concurrency/lock-free-lazy-init.yaml |
Links forward to the pattern. |
content/io/http-client.yaml |
Links back to the pattern. |
proof/concurrency/TimerTaskToScheduledExecutor.java |
Provides the compilation proof. |
social/queue.txt |
Queues the pattern for publishing. |
social/tweets.yaml |
Adds its social draft. |
translations/content/ar/concurrency/timer-task-to-scheduled-executor.yaml |
Adds Arabic content. |
translations/content/bn/concurrency/timer-task-to-scheduled-executor.yaml |
Adds Bengali content. |
translations/content/de/concurrency/timer-task-to-scheduled-executor.yaml |
Adds German content. |
translations/content/es/concurrency/timer-task-to-scheduled-executor.yaml |
Adds Spanish content. |
translations/content/fr/concurrency/timer-task-to-scheduled-executor.yaml |
Adds French content. |
translations/content/it/concurrency/timer-task-to-scheduled-executor.yaml |
Adds Italian content. |
translations/content/ja/concurrency/timer-task-to-scheduled-executor.yaml |
Adds Japanese content. |
translations/content/ko/concurrency/timer-task-to-scheduled-executor.yaml |
Adds Korean content. |
translations/content/pl/concurrency/timer-task-to-scheduled-executor.yaml |
Adds Polish content. |
translations/content/pt-BR/concurrency/timer-task-to-scheduled-executor.yaml |
Adds Brazilian Portuguese content. |
translations/content/ru/concurrency/timer-task-to-scheduled-executor.yaml |
Adds Russian content. |
translations/content/tr/concurrency/timer-task-to-scheduled-executor.yaml |
Adds Turkish content. |
translations/content/zh-CN/concurrency/timer-task-to-scheduled-executor.yaml |
Adds Simplified Chinese content. |
Review details
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 19/19 changed files
- Comments generated: 1
- Review effort level: Balanced
Co-authored-by: brunoborges <129743+brunoborges@users.noreply.github.com>
Co-authored-by: brunoborges <129743+brunoborges@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
brunoborges
force-pushed
the
copilot/timer-task-to-scheduled-executor
branch
from
August 27, 2026 17:21
a8d0d90 to
1741fcb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the "Timer tasks to scheduled executors" concurrency pattern, showing the migration from
Timer/TimerTasktoScheduledExecutorService.Content
content/concurrency/timer-task-to-scheduled-executor.yaml(difficulty: intermediate, JDK 5+)lock-free-lazy-initandio/http-client, updatingprev/nexton both neighborsProof
proof/concurrency/TimerTaskToScheduledExecutor.javademonstrates the modern code compiles and runs on JDK 25Translations
de,es,pt-BR,zh-CN,ar,fr,ja,ko,bn,it,pl,tr,ru)Social
social/queue.txt,social/tweets.yaml)