Based on #176, this PR is an example of how we could change our internals to support both blocking and asyncio modes.
An important point here is we retain end-to-end type safety via annotations, since mypy is able to differentiate types (e.g., AsyncFunction and BlockingFunction).
Based on #176, this PR is an example of how we could change our internals to support both blocking and asyncio modes.
An important point here is we retain end-to-end type safety via annotations, since mypy is able to differentiate types (e.g.,
AsyncFunction
andBlockingFunction
).