da6e96efa322d21d0a362c7e7f84c45633c37613
[osm/N2VC.git] / test_async_task.py
1 #!/usr/bin/env python3
2 # Recreate the conditions in which this will be used in OSM, called via tasks
3 import asyncio
4
5 if __name__ == "__main__":
6 main()
7
8 async def do_something():
9 pass
10
11 def main():
12
13 loop = asyncio.get_event_loop()
14 loop.run_until_complete(do_something())
15 loop.close()
16 loop = None