Skip to content

async Error when using sample #1

@alexkno79

Description

@alexkno79

Thanks!
In fact Data Reader works fine.
But when I try to launch one of the functions like in your sample to programmatically access the JSON then an error ia raised:

async for result in data_reader.main(default_port_settings):
^
SyntaxError: 'async for' outside async function

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions