Create widget in the other thread

i have to pre-create a large number of widgets
it will stuck the main game thread for a while
so i have to put the code to the other thread.
and here is the exception
Assertion failed: IsInGameThread()…

Have you found the solution?