Skip to content

Conversation

ocelaiwo
Copy link
Contributor

@ocelaiwo ocelaiwo commented Jul 2, 2025

Purpose

This PR adds the SharedFuture and SharedPromise classes, representing the single-producer multiple-consumer one-shot one-element channel. SharedFuture can be used to create multiple instances of Future all of which will be fulfilled with the same copyable value as soon as the corresponding SharedPromise is set.

@ocelaiwo ocelaiwo requested review from MBkkt and kononovk as code owners July 2, 2025 16:05
@ocelaiwo ocelaiwo marked this pull request as draft July 2, 2025 16:06
@coveralls
Copy link

coveralls commented Jul 2, 2025

Pull Request Test Coverage Report for Build 16057085917

Details

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

Totals Coverage Status
Change from base Build 15678240917: 0.0%
Covered Lines: 1828
Relevant Lines: 1828

💛 - Coveralls

@MBkkt MBkkt mentioned this pull request Jul 2, 2025
@MBkkt MBkkt marked this pull request as ready for review July 3, 2025 17:42
@MBkkt MBkkt merged commit f8dfca4 into YACLib:main Jul 3, 2025
1 of 2 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