## π Feature LitAPI can automatically identify if the function is a coroutine and run accordingly. ```py class MyAPI(ls.LitAPI): def predict(self, x): return y async def encode_response(self, out): return {"output": out} ``` ### Motivation <!-- Please outline the motivation for the proposal. Is your feature request related to a problem? e.g., I'm always frustrated when [...]. If this is related to another GitHub issue, please link here too... --> ### Pitch <!-- A clear and concise description of what you want to happen. --> ### Alternatives <!-- A clear and concise description of any alternative solutions or features you've considered, if any. --> ### Additional context <!-- Add any other context or screenshots about the feature request here. -->