sideeffect-io / AsyncExtensions

AsyncExtensions aims to mimic Swift Combine operators for async sequences.
MIT License
333 stars 26 forks source link

asyncSequences: Add Timer AsyncSequence #13

Closed twittemb closed 2 years ago

twittemb commented 2 years ago

Description

This PR brings a new Timer AsyncSequence. Timer is an async sequence that repeatedly emits the current date on the given interval, with the given priority.

Checklist

codecov-commenter commented 2 years ago

Codecov Report

Merging #13 (ebb50a0) into main (c09db2c) will decrease coverage by 0.08%. The diff coverage is 92.68%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #13      +/-   ##
==========================================
- Coverage   97.39%   97.30%   -0.09%     
==========================================
  Files          46       48       +2     
  Lines        2262     2303      +41     
==========================================
+ Hits         2203     2241      +38     
- Misses         59       62       +3     
Impacted Files Coverage Δ
Sources/AsyncSequences/AsyncSequences+Timer.swift 84.21% <84.21%> (ø)
...sts/AsyncSequences/AsyncSequences+TimerTests.swift 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update c09db2c...ebb50a0. Read the comment docs.