Skip to content

Async iterators #6576

@dom96

Description

@dom96

This is related to FutureStreams. It sure would be neat to be able to do something like this:

import asyncdispatch, httpclient
let client = newAsyncHttpClient()

let resp = client.get("http://google.com")
for data in resp.bodyStream:
  # Do something with data.

This might not be possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions