Skip to content

feat: implement CaffeinateManager for managing stay awake functionali… - #1

Merged
samirpatil2000 merged 1 commit into
mainfrom
feature/stay-awake
Jun 7, 2026
Merged

samirpatil2000 merged 1 commit into
mainfrom
feature/stay-awake

Conversation

@samirpatil2000

Copy link
Copy Markdown
Owner

…ty and integrate with MenuBar and StatusBoard views

…ty and integrate with MenuBar and StatusBoard views

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 5 out of 7 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +20 to +32
do {
try process.run()
self.process = process
isActive = true
expiresAt = duration.map { Date().addingTimeInterval($0) }

if let duration {
timer = Timer.scheduledTimer(withTimeInterval: duration, repeats: false) { [weak self] _ in
Task { @MainActor [weak self] in
self?.stop()
}
}
}
@samirpatil2000
samirpatil2000 merged commit a041367 into main Jun 7, 2026
1 check passed
@samirpatil2000
samirpatil2000 deleted the feature/stay-awake branch June 7, 2026 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants