Python Bytes cover image

#329 Creating very old Python code

Python Bytes

00:00

How to Make Textual Async Optional

The article discusses how they do that. If you're passing in a callback to if you're providing a mechanism for somebody to pass a callback in and that caller can be either just a normal function or an async function. He's utilizing the await me maybe pattern that he borrowed from Simon Willison. So it's kind of neat to be able to provide services and APIs that can be called both in a sink and non-async ways.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app