Skip to content

[libSwiftScan][Caching] Add async download API #69934

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

cachemeifyoucan
Copy link
Contributor

Add a new async download API from CASID. This helps build system better schedule the job/remove duplicated downloads, than using an opaque cached_output handle.

Add a new async download API from CASID. This helps build system better
schedule the job/remove duplicated downloads, than using an opaque
cached_output handle.
@cachemeifyoucan
Copy link
Contributor Author

@swift-ci please smoke test

@cachemeifyoucan
Copy link
Contributor Author

ping

/// Asynchronously visits the graph of the object node to ensure it's fully
/// materialized.
class AsyncObjectLoader
: public std::enable_shared_from_this<AsyncObjectLoader> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't know about this, neat.

@artemcm
Copy link
Contributor

artemcm commented Nov 28, 2023

Will we test this from the swift-driver repo?

@cachemeifyoucan
Copy link
Contributor Author

cachemeifyoucan commented Nov 28, 2023

Will we test this from the swift-driver repo?

It is wrapped into Swift APIs in swift-driver for build system. Now I am mostly implemented the build system, I can back port some of the use cases into swift-driver tests, yes.

@cachemeifyoucan
Copy link
Contributor Author

Test for new API added here: swiftlang/swift-driver#1491

@cachemeifyoucan cachemeifyoucan merged commit 5ba26d7 into swiftlang:main Nov 29, 2023
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