refactor(core): add generic utilities for resolving value-or-function patterns, replace specialized resolveStaleTime and resolveEnabled
#11056
| Job | Run time |
|---|---|
| 3m 2s | |
| 9s | |
| 5m 37s | |
| 8m 48s |