Miscellaneous scripts
This repository contains miscellaneous scripts that does not fit in one repository, yet I will use them sometimes for my personal use. Note that some of the scripts might contain hardcoded paths and opinionated presets, and you are advised to inspect them before actually using.
Loading...
Searching...
No Matches
async_await_demo Namespace Reference

Functions

 do_stuff ()
 do_stuff_sync ()
 stuff ()
 stuff_sync ()

Variables

int complexity = 1000

Function Documentation

◆ do_stuff()

async_await_demo.do_stuff ( )

Definition at line 20 of file async_await_demo.py.

20def do_stuff():
21 for i in range(complexity):
22 print(i)
23
24

Referenced by stuff().

Here is the caller graph for this function:

◆ do_stuff_sync()

async_await_demo.do_stuff_sync ( )

Definition at line 6 of file async_await_demo.py.

6async def do_stuff_sync():
7 for i in range(complexity):
8 print(i)
9
10

Referenced by stuff_sync().

Here is the caller graph for this function:

◆ stuff()

async_await_demo.stuff ( )

Definition at line 25 of file async_await_demo.py.

25def stuff():
26 do_stuff()
27 do_stuff()
28
29

References do_stuff().

Here is the call graph for this function:

◆ stuff_sync()

async_await_demo.stuff_sync ( )

Definition at line 11 of file async_await_demo.py.

11async def stuff_sync():
12 await do_stuff_sync()
13 await do_stuff_sync()
14
15
16# This message is printed before the do_stuff_sync() is called

References do_stuff_sync().

Here is the call graph for this function:

Variable Documentation

◆ complexity

int async_await_demo.complexity = 1000

Definition at line 3 of file async_await_demo.py.