We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65d85b2 commit 5efd535Copy full SHA for 5efd535
README.md
@@ -66,7 +66,8 @@ the configured signals and trigger a graceful shutdown on each service.
66
import ServiceLifecycle
67
import Logging
68
69
-final class FooService: Service {
+// A service can be implemented by a struct, class or actor. For this example we are using a struct.
70
+struct FooService: Service {
71
func run() async throws {
72
print("FooService starting")
73
try await Task.sleep(for: .seconds(10))
0 commit comments