{"action":"created","issue":{"url":"https://api.github.com/repos/raptorjs/marko-async/issues/10","labels_url":"https://api.github.com/repos/raptorjs/marko-async/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/raptorjs/marko-async/issues/10/comments","events_url":"https://api.github.com/repos/raptorjs/marko-async/issues/10/events","html_url":"https://github.com/raptorjs/marko-async/issues/10","id":59750983,"number":10,"title":"streams as data providers","user":{"login":"aaronshaf","id":122654,"avatar_url":"https://avatars.githubusercontent.com/u/122654?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronshaf","html_url":"https://github.com/aaronshaf","followers_url":"https://api.github.com/users/aaronshaf/followers","following_url":"https://api.github.com/users/aaronshaf/following{/other_user}","gists_url":"https://api.github.com/users/aaronshaf/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronshaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronshaf/subscriptions","organizations_url":"https://api.github.com/users/aaronshaf/orgs","repos_url":"https://api.github.com/users/aaronshaf/repos","events_url":"https://api.github.com/users/aaronshaf/events{/privacy}","received_events_url":"https://api.github.com/users/aaronshaf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-04T05:08:58Z","updated_at":"2015-03-04T15:26:40Z","closed_at":null,"body":"Would it be possible to use a stream as a data provider? Some possible uses:\r\n\r\n- Use the streamed data in a marko iterator\r\n- Or easier: Simply stream the text into an async-fragment"},"comment":{"url":"https://api.github.com/repos/raptorjs/marko-async/issues/comments/77178049","html_url":"https://github.com/raptorjs/marko-async/issues/10#issuecomment-77178049","issue_url":"https://api.github.com/repos/raptorjs/marko-async/issues/10","id":77178049,"user":{"login":"philidem","id":2395134,"avatar_url":"https://avatars.githubusercontent.com/u/2395134?v=3","gravatar_id":"","url":"https://api.github.com/users/philidem","html_url":"https://github.com/philidem","followers_url":"https://api.github.com/users/philidem/followers","following_url":"https://api.github.com/users/philidem/following{/other_user}","gists_url":"https://api.github.com/users/philidem/gists{/gist_id}","starred_url":"https://api.github.com/users/philidem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philidem/subscriptions","organizations_url":"https://api.github.com/users/philidem/orgs","repos_url":"https://api.github.com/users/philidem/repos","events_url":"https://api.github.com/users/philidem/events{/privacy}","received_events_url":"https://api.github.com/users/philidem/received_events","type":"User","site_admin":false},"created_at":"2015-03-04T15:26:40Z","updated_at":"2015-03-04T15:26:40Z","body":"@aaronshaf An async-fragment is associated with a stream so you should be able to pipe your stream to the async out steam. For example, something similar to:\r\n```javascript\r\nmyStream.pipe(asyncOut);\r\n```\r\n\r\nI'll see if I can create a working example to demonstrate it's usage.\r\n"}}