Skip to content

JavaScript: Proper way to use an async loader callback #476

@rben01

Description

@rben01

I am using the JS version of Sjsonnet and am running into an issue trying to call SjsonnetMain.interpret with an async loader callback. I have Files that I want to read, but the only good way to read them these days is through FileReader, which only provides an async interface. Is there a way to use this with Sjsonnet, or do I have to preload all of my files’ contents as strings so that I can make the callback synchronous?

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