sideeffect-io / AsyncExtensions

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

operators: handle errors in other for withLatestFrom #14

Closed twittemb closed 2 years ago

twittemb commented 2 years ago

Description

This PR improves the error management for withLatestFrom when the other sequence fails.

Checklist

codecov-commenter commented 2 years ago

Codecov Report

Merging #14 (db10b3f) into main (0aafcc4) will decrease coverage by 0.00%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #14      +/-   ##
==========================================
- Coverage   97.49%   97.49%   -0.01%     
==========================================
  Files          50       50              
  Lines        2433     2471      +38     
==========================================
+ Hits         2372     2409      +37     
- Misses         61       62       +1     
Impacted Files Coverage Δ
...urces/Operators/AsyncSequence+SwitchToLatest.swift 100.00% <ø> (ø)
...urces/Operators/AsyncSequence+WithLatestFrom.swift 100.00% <100.00%> (ø)
.../Operators/AsyncSequence+WithLatestFromTests.swift 100.00% <100.00%> (ø)
.../Operators/AsyncSequence+SwitchToLatestTests.swift 94.11% <0.00%> (-1.48%) :arrow_down:

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 0aafcc4...db10b3f. Read the comment docs.