@@ -51,7 +51,7 @@ import Swift
5151/// `Quake` instances every time it detects an earthquake. To receive callbacks,
5252/// callers set a custom closure as the value of the monitor's
5353/// `quakeHandler` property, which the monitor calls back as necessary. Callers
54- /// can also set an `errorHandler` to receive asychronous error notifications,
54+ /// can also set an `errorHandler` to receive asynchronous error notifications,
5555/// such as the monitor service suddenly becoming unavailable.
5656///
5757/// class QuakeMonitor {
@@ -201,7 +201,7 @@ public struct AsyncThrowingStream<Element, Failure: Error> {
201201 let storage : _Storage
202202
203203 /// Resume the task awaiting the next iteration point by having it return
204- /// nomally from its suspension point with a given element.
204+ /// normally from its suspension point with a given element.
205205 ///
206206 /// - Parameter value: The value to yield from the continuation.
207207 /// - Returns: A `YieldResult` that indicates the success or failure of the
@@ -283,7 +283,7 @@ public struct AsyncThrowingStream<Element, Failure: Error> {
283283 /// elements to the stream and terminate the stream when finished.
284284 ///
285285 /// The `AsyncStream.Continuation` received by the `build` closure is
286- /// appopriate for use in concurrent contexts. It is thread safe to send and
286+ /// appropriate for use in concurrent contexts. It is thread safe to send and
287287 /// finish; all calls are to the continuation are serialized. However, calling
288288 /// this from multiple concurrent contexts could result in out-of-order
289289 /// delivery.
@@ -292,7 +292,7 @@ public struct AsyncThrowingStream<Element, Failure: Error> {
292292 /// initializer that produces 100 random numbers on a one-second interval,
293293 /// calling `yield(_:)` to deliver each element to the awaiting call point.
294294 /// When the `for` loop exits, the stream finishes by calling the
295- /// continuation's `finish()` method. If the random number is divisble by 5
295+ /// continuation's `finish()` method. If the random number is divisible by 5
296296 /// with no remainder, the stream throws a `MyRandomNumberError`.
297297 ///
298298 /// let stream = AsyncThrowingStream<Int, Error>(Int.self,
@@ -338,7 +338,7 @@ public struct AsyncThrowingStream<Element, Failure: Error> {
338338 /// - produce: A closure that asynchronously produces elements for the
339339 /// stream.
340340 ///
341- /// Use this convenience initializer when you have an asychronous function
341+ /// Use this convenience initializer when you have an asynchronous function
342342 /// that can produce elements for the stream, and don't want to invoke
343343 /// a continuation manually. This initializer "unfolds" your closure into
344344 /// a full-blown asynchronous stream. The created stream handles adherence to
@@ -347,7 +347,7 @@ public struct AsyncThrowingStream<Element, Failure: Error> {
347347 ///
348348 /// The following example shows an `AsyncThrowingStream` created with this
349349 /// initializer that produces random numbers on a one-second interval. If the
350- /// random number is divisble by 5 with no remainder, the stream throws a
350+ /// random number is divisible by 5 with no remainder, the stream throws a
351351 /// `MyRandomNumberError`.
352352 ///
353353 /// let stream = AsyncThrowingStream<Int, Error> {
@@ -455,7 +455,7 @@ extension AsyncThrowingStream.Continuation {
455455 }
456456
457457 /// Resume the task awaiting the next iteration point by having it return
458- /// nomally from its suspension point.
458+ /// normally from its suspension point.
459459 ///
460460 /// - Returns: A `YieldResult` that indicates the success or failure of the
461461 /// yield operation.
0 commit comments