Defaults
Defaults copied to clipboard
Version 10
Some ideas for version 10. It will not happen for a long time.
- [ ] Deprecate
.observe()and.publisher(): https://github.com/sindresorhus/Defaults/issues/71
Uh... I just tried the latest DefaultsMacro and found that it brings too much performance burden (during the decoding process) comparing to use Combine-based Defaults.publisher() if the value type stored in the key is a complicated codable class / struct. I wonder what your suggestion is for replacing Defaults.publisher().
Defaults.updates() is the replacement of Defaults.publisher().
@sindresorhus Thanks for your suggestion. I wonder the following example of API migration is correct. Could you please help me take a look?
Each Defaults.updates() needs a separate Task.