Skip to content

Conversation

chr-hertel
Copy link
Member

@chr-hertel chr-hertel commented Oct 6, 2025

Q A
Bug fix? no
New feature? no
Docs? no
Issues
License MIT
  • Renaming ResultPromise to DeferredResult since the interface is not really promise-like
  • Replacing the \Closure with ResultConverterInterface in constructor

Alternative names

  • ResultFactory => is it a factory?
  • ResultBuilder => is it a builder?
  • LazyResult => would expect the same interface as the Result
  • ResultProxy => would expect the same interface as the Result
  • WrappedResult => i like wraps
  • ResultContainer => might confuse with the container
  • ResultHandle => ?

@chr-hertel chr-hertel added the Platform Issues & PRs about the AI Platform component label Oct 6, 2025
@chr-hertel chr-hertel added the BC Break Breaking the Backwards Compatibility Promise label Oct 6, 2025
@chr-hertel chr-hertel force-pushed the refactor-result-promise branch from 9a87f20 to c0a46b0 Compare October 7, 2025 00:04
@chr-hertel chr-hertel requested a review from lyrixx October 7, 2025 00:05
@chr-hertel chr-hertel force-pushed the refactor-result-promise branch 2 times, most recently from dd8cd4d to cf2be76 Compare October 7, 2025 00:13
@chr-hertel chr-hertel force-pushed the refactor-result-promise branch from cf2be76 to 503ac87 Compare October 7, 2025 00:21
@OskarStark
Copy link
Contributor

ResultHandle is also nice

Copy link
Member

@lyrixx lyrixx left a comment

Choose a reason for hiding this comment

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

LGTM 👍🏼

Thanks

@OskarStark OskarStark changed the title [Platform] Rename to DeferredResult and explicit contract instead of closure [Platform] Rename to DeferredResult and explicit contract instead of closure Oct 7, 2025
@OskarStark
Copy link
Contributor

Thank you @chr-hertel.

@OskarStark OskarStark merged commit 26f7453 into symfony:main Oct 7, 2025
15 checks passed
@chr-hertel chr-hertel deleted the refactor-result-promise branch October 7, 2025 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BC Break Breaking the Backwards Compatibility Promise Platform Issues & PRs about the AI Platform component Status: Reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants