Skip to content

Commit f277195

Browse files
authored
Fixed typo in 0314-async-stream.md
Fixed the typo and added note about a side effect
1 parent e27d7d3 commit f277195

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

proposals/0314-async-stream.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ extension QuakeMonitor {
114114
monitor.quakeHandler { quake in
115115
continuation.yield(quake)
116116
}
117-
monitor.onTermination = { _ in
118-
monitor.stopMonitoring
117+
continuation.onTermination = { _ in
118+
monitor.stopMonitoring // also retains the monitor, preventing deinit
119119
}
120120
monitor.startMonitoring()
121121
}

0 commit comments

Comments
 (0)