Skip to content

Better Nuget V3 API and async caching - #1892

Merged
forki merged 2 commits into
fsprojects:masterfrom
Thorium:master
Aug 26, 2016
Merged

forki merged 2 commits into
fsprojects:masterfrom
Thorium:master

Conversation

@Thorium

@Thorium Thorium commented Aug 26, 2016

Copy link
Copy Markdown
Member

Better Nuget V3 API and async caching.
Public API and Nuget V2 API calls to Async.RunSynchronously should be still refactored away to be real async, but those would cause function signature changes and for that reason bigger refactoring.

@forki

forki commented Aug 26, 2016

Copy link
Copy Markdown
Member

so what is doing? or what was the problem?

@Thorium

Thorium commented Aug 26, 2016

Copy link
Copy Markdown
Member Author

getNuGetV3Resource function was doing network fetching but:

  • getNuGetV3Resource errors were swallowed also in verbose mode. Not after this commit.
  • cache was not thread-safe. After this commit it is.
  • network operation was sync, not async. Because "Async.RunSynchronously" is actually sync. It's still sync.

@Thorium

Thorium commented Aug 26, 2016

Copy link
Copy Markdown
Member Author

The build is already failing before this...

@forki

forki commented Aug 26, 2016

Copy link
Copy Markdown
Member

💋

@forki
forki merged commit 5f749f4 into fsprojects:master Aug 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants