Swift Concurrency — Async Await Sequences Part 2
<p>Hey everyone this is our second part in learning Swift’s modern concurrency features. In this article we will learn about what AsyncSequence what does it has to offer us.</p>
<p>If you haven’t read the previous artcile you can <a href="https://medium.com/@amberktl004/swift-concurrency-async-await-part-1-03617a6c04dc" rel="noopener"><em>check it out here</em></a> it covers some basics which might be necessary for to continue this article. But if you’re comfortable with async await then you can start from here as well.</p>
<p><code>AsyncSequence</code> protocol is a new addition to Swift 5.5. Just like our existing <code>Sequence<Element></code> protocol which allows you to have a list of Element type and perform any operations iteratively on that sequence. One of the operations you may know is <code>for - in</code> loop and allows you to create your own custom iterator using <code>makeIterator()</code> method and calling <code>next()</code> on the iterator. <code>Sequence<Element></code> is at the core of RxSwift to achieve asynchronous programming.</p>
<p><a href="https://medium.com/@amberktl004/swift-concurrency-async-await-sequences-part-2-6d70e23c86c5"><strong>Click Here</strong></a></p>