Create task instead of run the loop in AsyncServer.