Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Async-Sync

def get_chat_id(name):
    time.sleep(3)
    return "chat-%s" % name

async def main():
    result = get_chat_id("django")
Source by www.aeracode.org #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
8+6 =