Skip to content

AioZipStream does not support async generators #3

Description

@mojimi

The following example does not work :

        async def files_generator():
            for filename in ['test1.txt', 'test2.txt', 'test3.txt']:
                yield {
                    'stream': await storage.get_file_stream({'path' : filename}, 5),
                    'name': filename
                }

        zs = AioZipStream(files_generator())

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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