Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
rename
  • Loading branch information
sliemeobn committed Mar 5, 2025
commit 7dce0c3585e32f16bcc60c3614c2b7760f63e4c0
4 changes: 2 additions & 2 deletions Sources/ServiceLifecycle/ServiceGroup.swift
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ public actor ServiceGroup: Sendable, Service {
"We did not create a graceful shutdown manager per service"
)

var taskGroupThatMustNotEscape = group
var _unownedTaskGroupHandledCarefully = group
group.addTask {
// This is the task that listens to added services and starts them while the group is running

Expand All @@ -356,7 +356,7 @@ public actor ServiceGroup: Sendable, Service {
"Mismatch between services and graceful shutdown managers"
)

taskGroupThatMustNotEscape.addServiceTask(
_unownedTaskGroupHandledCarefully.addServiceTask(
serviceConfiguration,
gracefulShutdownManager: gracefulShutdownManager,
index: services.count - 1
Expand Down