Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

The toOutput property does not work with async. #10

@hung1998hy

Description

@hung1998hy

Hi Hodrigo

I am using Askless for both the Flutter and Node.js sides. I noticed that when I use async for the output property like this:
toOutput: async (entities) => { const models = await GdvModel.fromEntityList(entities); const results = await Promise.all(models.map((model) => model.output())); return results;}

After that, I tried printing the results variable, and the Node.js server received the expected results, but on the Flutter side, I received an empty array. I want to ask you if async can be used with toOutput. If it can be used, how should I handle it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions