| Adam Israel | c3e6c2e | 2018-03-01 09:31:50 -0500 | [diff] [blame] | 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 | ||||