Skip to content

Commit

Permalink
feat: add NotificationCenterAsyncSequence (#37)
Browse files Browse the repository at this point in the history
* feat: add NotificationCenterAsyncSequence

* feat: update documentation

* feat: update README
  • Loading branch information
reddavis authored Aug 6, 2022
1 parent 35024e9 commit f7b6c72
Show file tree
Hide file tree
Showing 98 changed files with 4,497 additions and 265 deletions.
17 changes: 16 additions & 1 deletion .documentation/Actors.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@
<li class="nav-group-task">
<a href="Extensions/AsyncThrowingStream/Continuation.html">– Continuation</a>
</li>
<li class="nav-group-task">
<a href="Extensions/NotificationCenter.html">NotificationCenter</a>
</li>
<li class="nav-group-task">
<a href="Extensions/Sequence.html">Sequence</a>
</li>
Expand Down Expand Up @@ -109,6 +112,9 @@
<li class="nav-group-task">
<a href="Structs/DebounceAsyncSequence.html">DebounceAsyncSequence</a>
</li>
<li class="nav-group-task">
<a href="Structs/DebounceAsyncSequence/Iterator.html">– Iterator</a>
</li>
<li class="nav-group-task">
<a href="Structs/DelayAsyncSequence.html">DelayAsyncSequence</a>
</li>
Expand All @@ -127,6 +133,12 @@
<li class="nav-group-task">
<a href="Structs/MergeAsyncSequence.html">MergeAsyncSequence</a>
</li>
<li class="nav-group-task">
<a href="Structs/NotificationCenterAsyncSequence.html">NotificationCenterAsyncSequence</a>
</li>
<li class="nav-group-task">
<a href="Structs/NotificationCenterAsyncSequence/Iterator.html">– Iterator</a>
</li>
<li class="nav-group-task">
<a href="Structs/PassthroughAsyncSequence.html">PassthroughAsyncSequence</a>
</li>
Expand All @@ -148,6 +160,9 @@
<li class="nav-group-task">
<a href="Structs/ThrottleAsyncSequence.html">ThrottleAsyncSequence</a>
</li>
<li class="nav-group-task">
<a href="Structs/ThrottleAsyncSequence/Iterator.html">– Iterator</a>
</li>
<li class="nav-group-task">
<a href="Structs/ThrowingPassthroughAsyncSequence.html">ThrowingPassthroughAsyncSequence</a>
</li>
Expand Down Expand Up @@ -220,7 +235,7 @@ <h4>Declaration</h4>
</section>
</section>
<section id="footer">
<p>&copy; 2022 <a class="link" href="" target="_blank" rel="external noopener"></a>. All rights reserved. (Last updated: 2022-05-26)</p>
<p>&copy; 2022 <a class="link" href="" target="_blank" rel="external noopener"></a>. All rights reserved. (Last updated: 2022-08-06)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external noopener">jazzy ♪♫ v0.14.2</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external noopener">Realm</a> project.</p>
</section>
</article>
Expand Down
17 changes: 16 additions & 1 deletion .documentation/Actors/CurrentElementAsyncSequence.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@
<li class="nav-group-task">
<a href="../Extensions/AsyncThrowingStream/Continuation.html">– Continuation</a>
</li>
<li class="nav-group-task">
<a href="../Extensions/NotificationCenter.html">NotificationCenter</a>
</li>
<li class="nav-group-task">
<a href="../Extensions/Sequence.html">Sequence</a>
</li>
Expand Down Expand Up @@ -109,6 +112,9 @@
<li class="nav-group-task">
<a href="../Structs/DebounceAsyncSequence.html">DebounceAsyncSequence</a>
</li>
<li class="nav-group-task">
<a href="../Structs/DebounceAsyncSequence/Iterator.html">– Iterator</a>
</li>
<li class="nav-group-task">
<a href="../Structs/DelayAsyncSequence.html">DelayAsyncSequence</a>
</li>
Expand All @@ -127,6 +133,12 @@
<li class="nav-group-task">
<a href="../Structs/MergeAsyncSequence.html">MergeAsyncSequence</a>
</li>
<li class="nav-group-task">
<a href="../Structs/NotificationCenterAsyncSequence.html">NotificationCenterAsyncSequence</a>
</li>
<li class="nav-group-task">
<a href="../Structs/NotificationCenterAsyncSequence/Iterator.html">– Iterator</a>
</li>
<li class="nav-group-task">
<a href="../Structs/PassthroughAsyncSequence.html">PassthroughAsyncSequence</a>
</li>
Expand All @@ -148,6 +160,9 @@
<li class="nav-group-task">
<a href="../Structs/ThrottleAsyncSequence.html">ThrottleAsyncSequence</a>
</li>
<li class="nav-group-task">
<a href="../Structs/ThrottleAsyncSequence/Iterator.html">– Iterator</a>
</li>
<li class="nav-group-task">
<a href="../Structs/ThrowingPassthroughAsyncSequence.html">ThrowingPassthroughAsyncSequence</a>
</li>
Expand Down Expand Up @@ -468,7 +483,7 @@ <h4>Parameters</h4>
</section>
</section>
<section id="footer">
<p>&copy; 2022 <a class="link" href="" target="_blank" rel="external noopener"></a>. All rights reserved. (Last updated: 2022-05-26)</p>
<p>&copy; 2022 <a class="link" href="" target="_blank" rel="external noopener"></a>. All rights reserved. (Last updated: 2022-08-06)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external noopener">jazzy ♪♫ v0.14.2</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external noopener">Realm</a> project.</p>
</section>
</article>
Expand Down
19 changes: 17 additions & 2 deletions .documentation/Classes.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@
<li class="nav-group-task">
<a href="Extensions/AsyncThrowingStream/Continuation.html">– Continuation</a>
</li>
<li class="nav-group-task">
<a href="Extensions/NotificationCenter.html">NotificationCenter</a>
</li>
<li class="nav-group-task">
<a href="Extensions/Sequence.html">Sequence</a>
</li>
Expand Down Expand Up @@ -109,6 +112,9 @@
<li class="nav-group-task">
<a href="Structs/DebounceAsyncSequence.html">DebounceAsyncSequence</a>
</li>
<li class="nav-group-task">
<a href="Structs/DebounceAsyncSequence/Iterator.html">– Iterator</a>
</li>
<li class="nav-group-task">
<a href="Structs/DelayAsyncSequence.html">DelayAsyncSequence</a>
</li>
Expand All @@ -127,6 +133,12 @@
<li class="nav-group-task">
<a href="Structs/MergeAsyncSequence.html">MergeAsyncSequence</a>
</li>
<li class="nav-group-task">
<a href="Structs/NotificationCenterAsyncSequence.html">NotificationCenterAsyncSequence</a>
</li>
<li class="nav-group-task">
<a href="Structs/NotificationCenterAsyncSequence/Iterator.html">– Iterator</a>
</li>
<li class="nav-group-task">
<a href="Structs/PassthroughAsyncSequence.html">PassthroughAsyncSequence</a>
</li>
Expand All @@ -148,6 +160,9 @@
<li class="nav-group-task">
<a href="Structs/ThrottleAsyncSequence.html">ThrottleAsyncSequence</a>
</li>
<li class="nav-group-task">
<a href="Structs/ThrottleAsyncSequence/Iterator.html">– Iterator</a>
</li>
<li class="nav-group-task">
<a href="Structs/ThrowingPassthroughAsyncSequence.html">ThrowingPassthroughAsyncSequence</a>
</li>
Expand Down Expand Up @@ -188,7 +203,7 @@ <h1>Classes</h1>
<pre class="highlight swift"><code><span class="k">let</span> <span class="nv">sequence</span> <span class="o">=</span> <span class="kt">TimerAsyncSequence</span><span class="p">(</span><span class="nv">interval</span><span class="p">:</span> <span class="mi">1</span><span class="p">)</span>

<span class="k">let</span> <span class="nv">start</span> <span class="o">=</span> <span class="kt">Date</span><span class="o">.</span><span class="n">now</span>
<span class="k">for</span> <span class="n">element</span> <span class="k">in</span> <span class="k">await</span> <span class="n">sequence</span> <span class="p">{</span>
<span class="k">for</span> <span class="k">await</span> <span class="n">element</span> <span class="k">in</span> <span class="n">sequence</span> <span class="p">{</span>
<span class="nf">print</span><span class="p">(</span><span class="n">element</span><span class="p">)</span>
<span class="p">}</span>

Expand Down Expand Up @@ -216,7 +231,7 @@ <h4>Declaration</h4>
</section>
</section>
<section id="footer">
<p>&copy; 2022 <a class="link" href="" target="_blank" rel="external noopener"></a>. All rights reserved. (Last updated: 2022-05-26)</p>
<p>&copy; 2022 <a class="link" href="" target="_blank" rel="external noopener"></a>. All rights reserved. (Last updated: 2022-08-06)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external noopener">jazzy ♪♫ v0.14.2</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external noopener">Realm</a> project.</p>
</section>
</article>
Expand Down
19 changes: 17 additions & 2 deletions .documentation/Classes/TimerAsyncSequence.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@
<li class="nav-group-task">
<a href="../Extensions/AsyncThrowingStream/Continuation.html">– Continuation</a>
</li>
<li class="nav-group-task">
<a href="../Extensions/NotificationCenter.html">NotificationCenter</a>
</li>
<li class="nav-group-task">
<a href="../Extensions/Sequence.html">Sequence</a>
</li>
Expand Down Expand Up @@ -109,6 +112,9 @@
<li class="nav-group-task">
<a href="../Structs/DebounceAsyncSequence.html">DebounceAsyncSequence</a>
</li>
<li class="nav-group-task">
<a href="../Structs/DebounceAsyncSequence/Iterator.html">– Iterator</a>
</li>
<li class="nav-group-task">
<a href="../Structs/DelayAsyncSequence.html">DelayAsyncSequence</a>
</li>
Expand All @@ -127,6 +133,12 @@
<li class="nav-group-task">
<a href="../Structs/MergeAsyncSequence.html">MergeAsyncSequence</a>
</li>
<li class="nav-group-task">
<a href="../Structs/NotificationCenterAsyncSequence.html">NotificationCenterAsyncSequence</a>
</li>
<li class="nav-group-task">
<a href="../Structs/NotificationCenterAsyncSequence/Iterator.html">– Iterator</a>
</li>
<li class="nav-group-task">
<a href="../Structs/PassthroughAsyncSequence.html">PassthroughAsyncSequence</a>
</li>
Expand All @@ -148,6 +160,9 @@
<li class="nav-group-task">
<a href="../Structs/ThrottleAsyncSequence.html">ThrottleAsyncSequence</a>
</li>
<li class="nav-group-task">
<a href="../Structs/ThrottleAsyncSequence/Iterator.html">– Iterator</a>
</li>
<li class="nav-group-task">
<a href="../Structs/ThrowingPassthroughAsyncSequence.html">ThrowingPassthroughAsyncSequence</a>
</li>
Expand Down Expand Up @@ -176,7 +191,7 @@ <h1>TimerAsyncSequence</h1>
<pre class="highlight swift"><code><span class="k">let</span> <span class="nv">sequence</span> <span class="o">=</span> <span class="kt">TimerAsyncSequence</span><span class="p">(</span><span class="nv">interval</span><span class="p">:</span> <span class="mi">1</span><span class="p">)</span>

<span class="k">let</span> <span class="nv">start</span> <span class="o">=</span> <span class="kt">Date</span><span class="o">.</span><span class="n">now</span>
<span class="k">for</span> <span class="n">element</span> <span class="k">in</span> <span class="k">await</span> <span class="n">sequence</span> <span class="p">{</span>
<span class="k">for</span> <span class="k">await</span> <span class="n">element</span> <span class="k">in</span> <span class="n">sequence</span> <span class="p">{</span>
<span class="nf">print</span><span class="p">(</span><span class="n">element</span><span class="p">)</span>
<span class="p">}</span>

Expand Down Expand Up @@ -365,7 +380,7 @@ <h4>Return Value</h4>
</section>
</section>
<section id="footer">
<p>&copy; 2022 <a class="link" href="" target="_blank" rel="external noopener"></a>. All rights reserved. (Last updated: 2022-05-26)</p>
<p>&copy; 2022 <a class="link" href="" target="_blank" rel="external noopener"></a>. All rights reserved. (Last updated: 2022-08-06)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external noopener">jazzy ♪♫ v0.14.2</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external noopener">Realm</a> project.</p>
</section>
</article>
Expand Down
17 changes: 16 additions & 1 deletion .documentation/Enums.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@
<li class="nav-group-task">
<a href="Extensions/AsyncThrowingStream/Continuation.html">– Continuation</a>
</li>
<li class="nav-group-task">
<a href="Extensions/NotificationCenter.html">NotificationCenter</a>
</li>
<li class="nav-group-task">
<a href="Extensions/Sequence.html">Sequence</a>
</li>
Expand Down Expand Up @@ -109,6 +112,9 @@
<li class="nav-group-task">
<a href="Structs/DebounceAsyncSequence.html">DebounceAsyncSequence</a>
</li>
<li class="nav-group-task">
<a href="Structs/DebounceAsyncSequence/Iterator.html">– Iterator</a>
</li>
<li class="nav-group-task">
<a href="Structs/DelayAsyncSequence.html">DelayAsyncSequence</a>
</li>
Expand All @@ -127,6 +133,12 @@
<li class="nav-group-task">
<a href="Structs/MergeAsyncSequence.html">MergeAsyncSequence</a>
</li>
<li class="nav-group-task">
<a href="Structs/NotificationCenterAsyncSequence.html">NotificationCenterAsyncSequence</a>
</li>
<li class="nav-group-task">
<a href="Structs/NotificationCenterAsyncSequence/Iterator.html">– Iterator</a>
</li>
<li class="nav-group-task">
<a href="Structs/PassthroughAsyncSequence.html">PassthroughAsyncSequence</a>
</li>
Expand All @@ -148,6 +160,9 @@
<li class="nav-group-task">
<a href="Structs/ThrottleAsyncSequence.html">ThrottleAsyncSequence</a>
</li>
<li class="nav-group-task">
<a href="Structs/ThrottleAsyncSequence/Iterator.html">– Iterator</a>
</li>
<li class="nav-group-task">
<a href="Structs/ThrowingPassthroughAsyncSequence.html">ThrowingPassthroughAsyncSequence</a>
</li>
Expand Down Expand Up @@ -204,7 +219,7 @@ <h4>Declaration</h4>
</section>
</section>
<section id="footer">
<p>&copy; 2022 <a class="link" href="" target="_blank" rel="external noopener"></a>. All rights reserved. (Last updated: 2022-05-26)</p>
<p>&copy; 2022 <a class="link" href="" target="_blank" rel="external noopener"></a>. All rights reserved. (Last updated: 2022-08-06)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external noopener">jazzy ♪♫ v0.14.2</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external noopener">Realm</a> project.</p>
</section>
</article>
Expand Down
17 changes: 16 additions & 1 deletion .documentation/Enums/AsyncSequenceCompletion.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@
<li class="nav-group-task">
<a href="../Extensions/AsyncThrowingStream/Continuation.html">– Continuation</a>
</li>
<li class="nav-group-task">
<a href="../Extensions/NotificationCenter.html">NotificationCenter</a>
</li>
<li class="nav-group-task">
<a href="../Extensions/Sequence.html">Sequence</a>
</li>
Expand Down Expand Up @@ -109,6 +112,9 @@
<li class="nav-group-task">
<a href="../Structs/DebounceAsyncSequence.html">DebounceAsyncSequence</a>
</li>
<li class="nav-group-task">
<a href="../Structs/DebounceAsyncSequence/Iterator.html">– Iterator</a>
</li>
<li class="nav-group-task">
<a href="../Structs/DelayAsyncSequence.html">DelayAsyncSequence</a>
</li>
Expand All @@ -127,6 +133,12 @@
<li class="nav-group-task">
<a href="../Structs/MergeAsyncSequence.html">MergeAsyncSequence</a>
</li>
<li class="nav-group-task">
<a href="../Structs/NotificationCenterAsyncSequence.html">NotificationCenterAsyncSequence</a>
</li>
<li class="nav-group-task">
<a href="../Structs/NotificationCenterAsyncSequence/Iterator.html">– Iterator</a>
</li>
<li class="nav-group-task">
<a href="../Structs/PassthroughAsyncSequence.html">PassthroughAsyncSequence</a>
</li>
Expand All @@ -148,6 +160,9 @@
<li class="nav-group-task">
<a href="../Structs/ThrottleAsyncSequence.html">ThrottleAsyncSequence</a>
</li>
<li class="nav-group-task">
<a href="../Structs/ThrottleAsyncSequence/Iterator.html">– Iterator</a>
</li>
<li class="nav-group-task">
<a href="../Structs/ThrowingPassthroughAsyncSequence.html">ThrowingPassthroughAsyncSequence</a>
</li>
Expand Down Expand Up @@ -238,7 +253,7 @@ <h4>Declaration</h4>
</section>
</section>
<section id="footer">
<p>&copy; 2022 <a class="link" href="" target="_blank" rel="external noopener"></a>. All rights reserved. (Last updated: 2022-05-26)</p>
<p>&copy; 2022 <a class="link" href="" target="_blank" rel="external noopener"></a>. All rights reserved. (Last updated: 2022-08-06)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external noopener">jazzy ♪♫ v0.14.2</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external noopener">Realm</a> project.</p>
</section>
</article>
Expand Down
Loading

0 comments on commit f7b6c72

Please sign in to comment.