Skip to content

Commit 5efd535

Browse files
authored
Update README.md
1 parent 65d85b2 commit 5efd535

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ the configured signals and trigger a graceful shutdown on each service.
6666
import ServiceLifecycle
6767
import Logging
6868

69-
final class FooService: Service {
69+
// A service can be implemented by a struct, class or actor. For this example we are using a struct.
70+
struct FooService: Service {
7071
func run() async throws {
7172
print("FooService starting")
7273
try await Task.sleep(for: .seconds(10))

0 commit comments

Comments
 (0)