Skip to content

Conversation

ocelaiwo
Copy link
Contributor

Purpose

This PR makes SharedCore into a proper core so that SharedFuture instances can be used in more situations.
Here for ResultCore is also implemented to allow it to be on the receiving end of Loop.
For now, the following is supported:

  • The use of Connect(future, promise) to use the future result to fulfill the promise (both future and promise can be either shared or regular).
  • SharedFuture instances are waitable now if the wait is performed without a timeout. SharedFuture can be waited concurrently.

@ocelaiwo ocelaiwo requested review from MBkkt and kononovk as code owners July 16, 2025 11:31
@ocelaiwo ocelaiwo marked this pull request as draft July 16, 2025 11:32
@ocelaiwo ocelaiwo force-pushed the shared_future branch 3 times, most recently from 7e8d8a1 to 9aaeb9c Compare July 17, 2025 13:10
@ocelaiwo ocelaiwo marked this pull request as ready for review July 17, 2025 13:14
@coveralls
Copy link

coveralls commented Jul 17, 2025

Pull Request Test Coverage Report for Build 16627608114

Details

  • 134 of 134 (100.0%) changed or added relevant lines in 19 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 16057692546: 0.0%
Covered Lines: 1903
Relevant Lines: 1903

💛 - Coveralls

@ocelaiwo ocelaiwo force-pushed the shared_future branch 2 times, most recently from 8396926 to 865cc17 Compare July 26, 2025 13:24
Copy link
Member

@MBkkt MBkkt left a comment

Choose a reason for hiding this comment

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

You forgot tests for
connect(coro(), promise)
connect(coro(), shared_promise)

@MBkkt MBkkt merged commit a8fe5b9 into YACLib:main Jul 30, 2025
32 of 34 checks passed
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.

3 participants