File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Sources/ServiceLifecycle/Docs.docc Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -129,8 +129,8 @@ struct StreamingService: Service {
129
129
130
130
func run () async throws {
131
131
await withDiscardingTaskGroup { group in
132
- group. addTask {
133
- for stream in makeStreams () {
132
+ for stream in makeStreams () {
133
+ group. addTask {
134
134
await streamHandler (stream.requestStream , stream.responseWriter )
135
135
}
136
136
}
@@ -191,8 +191,8 @@ struct StreamingService: Service {
191
191
192
192
func run () async throws {
193
193
await withDiscardingTaskGroup { group in
194
- group. addTask {
195
- for stream in makeStreams (). cancelOnGracefulShutdown () {
194
+ for stream in makeStreams (). cancelOnGracefulShutdown () {
195
+ group. addTask {
196
196
await streamHandler (stream.requestStream , stream.responseWriter )
197
197
}
198
198
}
You can’t perform that action at this time.
0 commit comments