yuhan6665 42aea01fb5
Core: Add mutex to injection resolution (#4206)
* Revert "Add RequireFeaturesAsync() that works regardless order of app init"

* Add mutex to injection resolution

- Turns out we already support async DI resolution regardless of feature ordering
Previous code contain a race condition causing some resolution is lost
- Note that the new mutex cover s.pendingResolutions and s.features
but must not cover callbackResolution() due to deadlock
- Refactor some method names and simplify code

* Add OptionalFeatures injection

For example OptionalFeatures() is useful for fakedns module
2024-12-26 12:55:12 +00:00
..
2020-11-25 19:01:53 +08:00
2022-05-18 15:29:01 +08:00
2022-12-25 19:47:53 -05:00
2024-12-18 13:39:35 +00:00
2022-05-18 15:27:55 +08:00
2024-06-29 14:32:57 -04:00
2020-12-10 03:52:05 +00:00
2024-11-03 00:25:23 -04:00