lib: refactor loader with arrow function
Clean version for #23240 I promise the final the same pr. I feel very appreciate for ur patient. Comments benefit me a lot.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines