Skip to content

Commit 0d0c80a

Browse files
committed
Add more comments to main.swift file
1 parent ffeef40 commit 0d0c80a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sources/ExampleApp/main.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,17 @@ import Foundation
33
@preconcurrency import SwiftGlibc
44
#endif
55

6+
// NOTE: Not necessary when using Logging
7+
// https://github.com/apple/swift-log
68
// Make sure print() output is instant
79
setlinebuf(stdout)
810

911
print("Hello world")
1012
print("This should be visible right after starting the application")
1113

14+
// NOTE: If you are using ServiceLifecycle, delete this
15+
// https://github.com/swift-server/swift-service-lifecycle
16+
// Documentation: https://swiftpackageindex.com/swift-server/swift-service-lifecycle/main/documentation/servicelifecycle/how-to-adopt-servicelifecycle-in-libraries#Graceful-shutdown
1217
let signalHandlers = [
1318
SIGINT, // ctrl+C in interactive mode
1419
SIGTERM, // docker container stop container_name

0 commit comments

Comments
 (0)