Immigrate to Async and/or Multithread

I am writing an experimental blockchain. I wrote it in total procedural and now I want to convert it Async and/or multi-thread, since I am adding web interface to it.
in the project I also implemented 3 singletons (one for DB, one for Machine IO, and one for global parameters) which you can find it in main file.
someone can help me to immigrate my project to one step further? Here is the project ripo GitHub - estainit/diamond and here is the web-ui GitHub - estainit/diamond-ui: Diamond web interface.
in file ~/diamond/src/lib/ there is a giga-loop which I want to convert its tasks to async and/or multi-thread tasks.
many thanks in advanced

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.