def async_session(func): async def wrapper(*args, **kwargs): async with get_async_session() as session: return await func(session, *args, **kwargs) return wrapper
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter