From 65d85b21c74bc21f8c5a45a828b301ac8c7d231b Mon Sep 17 00:00:00 2001 From: Franz Busch Date: Sun, 12 Jan 2025 17:30:13 +0100 Subject: [PATCH 1/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ff1fc77..de26fd4 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ the configured signals and trigger a graceful shutdown on each service. import ServiceLifecycle import Logging -actor FooService: Service { +final class FooService: Service { func run() async throws { print("FooService starting") try await Task.sleep(for: .seconds(10)) From 5efd535d37b2e74b6834062daf3bf6914cdb0e5b Mon Sep 17 00:00:00 2001 From: Franz Busch Date: Mon, 13 Jan 2025 12:11:25 +0100 Subject: [PATCH 2/2] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index de26fd4..b21c2e8 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,8 @@ the configured signals and trigger a graceful shutdown on each service. import ServiceLifecycle import Logging -final class FooService: Service { +// A service can be implemented by a struct, class or actor. For this example we are using a struct. +struct FooService: Service { func run() async throws { print("FooService starting") try await Task.sleep(for: .seconds(10))