{"action":"created","issue":{"url":"https://api.github.com/repos/vxgmichel/aiostream/issues/17","repository_url":"https://api.github.com/repos/vxgmichel/aiostream","labels_url":"https://api.github.com/repos/vxgmichel/aiostream/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/vxgmichel/aiostream/issues/17/comments","events_url":"https://api.github.com/repos/vxgmichel/aiostream/issues/17/events","html_url":"https://github.com/vxgmichel/aiostream/issues/17","id":339220585,"node_id":"MDU6SXNzdWUzMzkyMjA1ODU=","number":17,"title":"Support for Trio or Curio","user":{"login":"andersea","id":10992982,"node_id":"MDQ6VXNlcjEwOTkyOTgy","avatar_url":"https://avatars1.githubusercontent.com/u/10992982?v=4","gravatar_id":"","url":"https://api.github.com/users/andersea","html_url":"https://github.com/andersea","followers_url":"https://api.github.com/users/andersea/followers","following_url":"https://api.github.com/users/andersea/following{/other_user}","gists_url":"https://api.github.com/users/andersea/gists{/gist_id}","starred_url":"https://api.github.com/users/andersea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andersea/subscriptions","organizations_url":"https://api.github.com/users/andersea/orgs","repos_url":"https://api.github.com/users/andersea/repos","events_url":"https://api.github.com/users/andersea/events{/privacy}","received_events_url":"https://api.github.com/users/andersea/received_events","type":"User","site_admin":false},"labels":[{"id":419551148,"node_id":"MDU6TGFiZWw0MTk1NTExNDg=","url":"https://api.github.com/repos/vxgmichel/aiostream/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":18,"created_at":"2018-07-08T12:07:21Z","updated_at":"2018-07-27T07:33:28Z","closed_at":null,"author_association":"NONE","body":"It looks like there are a few hard coded dependencies on the asyncio event loop, like for example with the time operators.\r\n\r\nI am not sure if there is any way to introspect which loop you are running under and whether you could abstract away event loop apis. Alternatively if you wanted to run aiostream on those loops there would need to be loop specific versions of those operators."},"comment":{"url":"https://api.github.com/repos/vxgmichel/aiostream/issues/comments/408337365","html_url":"https://github.com/vxgmichel/aiostream/issues/17#issuecomment-408337365","issue_url":"https://api.github.com/repos/vxgmichel/aiostream/issues/17","id":408337365,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODMzNzM2NQ==","user":{"login":"njsmith","id":609896,"node_id":"MDQ6VXNlcjYwOTg5Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/609896?v=4","gravatar_id":"","url":"https://api.github.com/users/njsmith","html_url":"https://github.com/njsmith","followers_url":"https://api.github.com/users/njsmith/followers","following_url":"https://api.github.com/users/njsmith/following{/other_user}","gists_url":"https://api.github.com/users/njsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/njsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/njsmith/subscriptions","organizations_url":"https://api.github.com/users/njsmith/orgs","repos_url":"https://api.github.com/users/njsmith/repos","events_url":"https://api.github.com/users/njsmith/events{/privacy}","received_events_url":"https://api.github.com/users/njsmith/received_events","type":"User","site_admin":false},"created_at":"2018-07-27T07:33:27Z","updated_at":"2018-07-27T07:33:27Z","author_association":"NONE","body":"@smurfix the `yield` here is really an `await`, and trio-asyncio certainly has to intercept those or else `await future` wouldn't work :-)\r\n\r\nIt does seem like a synchronous function would be better though, and yeah that's probably most cleanly down as a contextvar. Maybe we should have a `sniffio` package whose only job is to define the `ContextVar` that all the other packages can import and set/check?"}}
{"actor":{"display_login":"njsmith"}}