How to run a TCP server without blocking the whole program?

https://github.com/me-no-dev/AsyncTCP.

https://github.com/GreenPonik/esp32-asyncTCP-server-example/blob/master/src/main.cpp.