I've tried to run a coroutine twice at the same time(below) but I got a RuntimeError: This event loop is already running. unfortunately I fund noting helpful from google.
I appreciate your help in advance : )
async def _compare(max_bid, min_ask):
if max_bid > min_ask:
print('example')
asyncio.get_event_loop().run_until_complete(asyncio.gather(
_compare(a_max_bid, b_min_ask),
_compare(b_max_bid, a_min_ask)
))
RuntimeError: This event loop is already running