Skip to content

[Observation] Refactor for state machine (and behavior robustness) and adjust protocol requirement names #64414

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
merged 3 commits into from
Mar 17, 2023

Conversation

phausler
Copy link
Contributor

This adjusts the implementation for the registrar to now have a robust state machine to transition from discrete states for deterministic results (particularly for testing). The primitive requirements for the Observable protocol are now named changes and values to reflect their more common parlance usage/meaning (and also more accurately reflect other APIs). The values protocol requirement now emits values such that if a property changes in-between suspension it can now determine that the value has changed and emit that (whereas previously the value may have been dropped).

The module name was also corrected to have a leading underscore since that module has not yet been accepted as a proposal - after acceptance it will be renamed back to dropping the leading underscore (demarcating that it is part of the official builds and is no longer experimental).

@phausler
Copy link
Contributor Author

@swift-ci please test

1 similar comment
@phausler
Copy link
Contributor Author

@swift-ci please test

@phausler phausler force-pushed the pr/observation_rework branch from aa03389 to 68b14c5 Compare March 16, 2023 18:37
@phausler
Copy link
Contributor Author

@swift-ci please test

@phausler phausler force-pushed the pr/observation_rework branch from 68b14c5 to 13a1377 Compare March 16, 2023 21:16
@phausler
Copy link
Contributor Author

@swift-ci please test

@phausler phausler force-pushed the pr/observation_rework branch from 13a1377 to 2ef8aec Compare March 16, 2023 21:22
@phausler
Copy link
Contributor Author

@swift-ci please test

@phausler phausler force-pushed the pr/observation_rework branch from 2ef8aec to ba4d850 Compare March 16, 2023 22:33
@phausler
Copy link
Contributor Author

@swift-ci please test

@phausler phausler merged commit 7fd2f52 into swiftlang:main Mar 17, 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.

1 participant