Search notes:

Python: async def

async def functions return coroutine objects

A function declared with async def returns a coroutine object:
import asyncio

async def coro_func(): pass

coro_obj = coro_func()

print(type(coro_obj)) # <class 'coroutine'>

asyncio.run(coro_obj)

Key properties of coroutines

PEP 492 lists some properties of coroutines:

RuntimeWarning: coroutine 'coro' was never awaited

import asyncio

async def coro(): pass

coro()

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1741108066, '3.145.103.54', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/Python/statements/def/async/index(62): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78