Skip to content
This repository was archived by the owner on Sep 30, 2025. It is now read-only.

Swift: Defer request storage until execution#202

Merged
dflems merged 1 commit intospotify:masterfrom
kmcbride:swift-request-management
Jan 23, 2021
Merged

Swift: Defer request storage until execution#202
dflems merged 1 commit intospotify:masterfrom
kmcbride:swift-request-management

Conversation

@kmcbride
Copy link
Copy Markdown
Collaborator

This is a small optimization to prevent rare cases where objects linger in memory when the API user creates a request without executing it. Request removal should now always occur because they will only be added if a perform is attempted — which ultimately leads to a response handler removing the stored request.

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 22, 2021

Codecov Report

Merging #202 (54b1f3a) into master (867c0a3) will decrease coverage by 0.07%.
The diff coverage is 87.50%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #202      +/-   ##
==========================================
- Coverage   94.87%   94.80%   -0.08%     
==========================================
  Files          24       24              
  Lines        1229     1231       +2     
==========================================
+ Hits         1166     1167       +1     
- Misses         63       64       +1     
Flag Coverage Δ
ios 94.23% <25.00%> (-0.65%) ⬇️
macos 94.80% <87.50%> (-0.08%) ⬇️
tvos 94.23% <25.00%> (-0.65%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
Sources/SPTDataLoaderSwift/DataLoaderWrapper.swift 96.00% <83.33%> (-4.00%) ⬇️
Sources/SPTDataLoaderSwift/Request.swift 97.54% <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 867c0a3...54b1f3a. Read the comment docs.

@dflems dflems merged commit 3ec513e into spotify:master Jan 23, 2021
@kmcbride kmcbride deleted the swift-request-management branch January 23, 2021 00:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants