You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fatalError("Trying to setup a graceful shutdown handler inside a task that doesn't have access to the ShutdownGracefulManager. This happens either when unstructured Concurrency is used like Task.detached {} or when you tried to setup a shutdown graceful handler outside the ServiceRunner.run method. Not setting up the handler.")
48
-
}
42
+
returntryawaitoperation()
49
43
}
50
44
51
45
// We have to keep track of our handler here to remove it once the operation is finished.
@@ -59,6 +53,7 @@ public func withGracefulShutdownHandler<T>(
59
53
returntryawaitoperation()
60
54
}
61
55
56
+
/// This is just a helper type for the result of our task group.
0 commit comments