Skip to content

Update autoValue to accept async function #739

@sherryysj

Description

@sherryysj

Is your feature request related to a problem? Please describe.
Meteor have updated their MongoDB functions to async, such as findOneAsync, and if we use these functions in autoValue function, we have to make the autoValue function as async as well. However, it does not work as autoValue seems won't wait for a promise when being calling.

Describe the solution you'd like
autoValue can work for async function

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions