
#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