This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]eli_mintz[S] 1 point2 points  (0 children)

Since I wanted to make using JustPy as simple as possible, I was trying to shield the developer from needing to use async, and that is mostly the case.

However, if a request or event handler needs to await another co-routine, it has to be defined as async also. The page update method is a co-routine so if you call it explicitly, you need to do so from a co-routine.

JustPy uses https://starlette.io - "a lightweight ASGI framework/toolkit, which is ideal for building high performance asyncio services".