I am trying to open a thread where async functions takes care of reading messages. I know that within a thread it is necessary to create a loop. How can I pass that loop as