Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate effect into a separate class
Some notes about the design: - Effects' options bag should have a `notify` method, instead of calling this `effect`. It's called with the right receiver. - Effects can only be sinks, not sources, and this is enforced by making it banned to read effects while computing another signal - get on Effects always returns undefined - Effects use `Symbol.dispose` for destruction. There's no way to restart them once they have been destroyed. - As previously, once `notify` has been called, then it won't be called again until `get` is run.
- Loading branch information