Skip to content

docs(readme): update Observer section for narrow-interface API#49

Merged
floodfx merged 1 commit into
mainfrom
docs/update-readme-for-observers
May 21, 2026
Merged

docs(readme): update Observer section for narrow-interface API#49
floodfx merged 1 commit into
mainfrom
docs/update-readme-for-observers

Conversation

@floodfx
Copy link
Copy Markdown
Owner

@floodfx floodfx commented May 21, 2026

Summary

  • Rewrites README section 12 (Observing Lifecycle Events) for the 0.3.0 observer API: BaseObserver marker, nine narrow per-callback interfaces, variadic WithObservers, *XEvent pointer callbacks, lazy sync.Once-memoized Data() on payloads.
  • Drops stale references to NopObserver, MultiObserver, and the non-existent gstate.WithObserver[S,E,D] package-level helpers; corrects the JSON marshal example (contextdata).
  • Updates the Actor options listing, the Hydrate example, and the examples table to match the current API surface.

Reflects the 0.3.0 observer refactor: BaseObserver marker, nine narrow
per-callback interfaces, variadic WithObservers, *XEvent pointer
callbacks, and lazy sync.Once-memoized Data() on payloads. Also
removes stale references to NopObserver, MultiObserver, the
non-existent package-level With* helpers, and the obsolete JSON
"context" field name.
@floodfx floodfx merged commit 989cb2e into main May 21, 2026
1 check passed
@floodfx floodfx deleted the docs/update-readme-for-observers branch May 21, 2026 12:45
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