swift
9d1d9170 - [Observation] ensure event triggers on deinitialization passes as if all properties that are being observed have changed (for weak storage) (#79823)

Comment changes are shownComment changes are hidden
Commit
97 days ago
[Observation] ensure event triggers on deinitialization passes as if all properties that are being observed have changed (for weak storage) (#79823) * [Observation] ensure event triggers on deinitialziation passes as if all properties that are being observed have changed (for weak storage) * Add missing deinitialize method for synthetically triggering willSet * Correct the weak location for tests * Correct the test to actually test the deinitialization willSet trigger instead of testing weak value deinitialization time * Refine the tests for deinit triggers to more tightly trigger deinitialization and weak references * Correct missing trailing closure on deinit replacement * Ensure all potential ids are triggered at the deinitialization edge trigger
Author
Parents
  • stdlib/public/Observation/Sources/Observation
    • File
      ObservationRegistrar.swift
  • test/stdlib/Observation
    • File
      Observable.swift