I apologize right away - I'm new to programming, so the question can be silly.
Is it possible to run coroutine/task without blocking further code execution?
For example:

import asyncio


async def do_something_important():
    #something important happens here

async def main():
    while True:
        #something happens here, something is considered and at some point
        #condition changes to True

        if condition:
            #here do_something_important() is launched:
            #and leaves it working"in the background" without waiting for results

        #work continues here


1 Answers 1

  • Thank you, this is exactly what you need.I'll go read the documentation.:) – Anxious72 Aug 18 '19 at 21:15