{"action":"created","comment":{"url":"https://api.github.com/repos/dart-lang/http_throttle/pulls/comments/189418963","pull_request_review_id":121602602,"id":189418963,"diff_hunk":"@@ -36,8 +36,9 @@ class ThrottleClient extends BaseClient {\n       rethrow;\n     }\n \n-    var stream = response.stream\n-        .transform(new StreamTransformer.fromHandlers(handleDone: (sink) {\n+    var stream = response.stream.transform(","path":"lib/http_throttle.dart","position":6,"original_position":6,"commit_id":"260b0b7c7b36dd1c8f065a4fc3e81b22d643882b","original_commit_id":"260b0b7c7b36dd1c8f065a4fc3e81b22d643882b","user":{"login":"natebosch","id":7528195,"avatar_url":"https://avatars3.githubusercontent.com/u/7528195?v=4","gravatar_id":"","url":"https://api.github.com/users/natebosch","html_url":"https://github.com/natebosch","followers_url":"https://api.github.com/users/natebosch/followers","following_url":"https://api.github.com/users/natebosch/following{/other_user}","gists_url":"https://api.github.com/users/natebosch/gists{/gist_id}","starred_url":"https://api.github.com/users/natebosch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natebosch/subscriptions","organizations_url":"https://api.github.com/users/natebosch/orgs","repos_url":"https://api.github.com/users/natebosch/repos","events_url":"https://api.github.com/users/natebosch/events{/privacy}","received_events_url":"https://api.github.com/users/natebosch/received_events","type":"User","site_admin":false},"body":"not worth the extra dependency, but for the record this is a good use case for `tap` from `package:stream_transform`\r\n\r\n```dart\r\nvar stream = response.stream.transform(tap((_) {}, onDone: resource.release));\r\n```","created_at":"2018-05-19T00:41:36Z","updated_at":"2018-05-19T00:41:43Z","html_url":"https://github.com/dart-lang/http_throttle/pull/7#discussion_r189418963","pull_request_url":"https://api.github.com/repos/dart-lang/http_throttle/pulls/7","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/dart-lang/http_throttle/pulls/comments/189418963"},"html":{"href":"https://github.com/dart-lang/http_throttle/pull/7#discussion_r189418963"},"pull_request":{"href":"https://api.github.com/repos/dart-lang/http_throttle/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/dart-lang/http_throttle/pulls/7","id":189148430,"html_url":"https://github.com/dart-lang/http_throttle/pull/7","diff_url":"https://github.com/dart-lang/http_throttle/pull/7.diff","patch_url":"https://github.com/dart-lang/http_throttle/pull/7.patch","issue_url":"https://api.github.com/repos/dart-lang/http_throttle/issues/7","number":7,"state":"open","locked":false,"title":"Fix Dart2 type error","user":{"login":"kevmoo","id":17034,"avatar_url":"https://avatars2.githubusercontent.com/u/17034?v=4","gravatar_id":"","url":"https://api.github.com/users/kevmoo","html_url":"https://github.com/kevmoo","followers_url":"https://api.github.com/users/kevmoo/followers","following_url":"https://api.github.com/users/kevmoo/following{/other_user}","gists_url":"https://api.github.com/users/kevmoo/gists{/gist_id}","starred_url":"https://api.github.com/users/kevmoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevmoo/subscriptions","organizations_url":"https://api.github.com/users/kevmoo/orgs","repos_url":"https://api.github.com/users/kevmoo/repos","events_url":"https://api.github.com/users/kevmoo/events{/privacy}","received_events_url":"https://api.github.com/users/kevmoo/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-05-18T22:28:40Z","updated_at":"2018-05-19T00:41:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"843e2d6c1e01bf044d6c783b69ec63d2c87310a5","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":421017751,"url":"https://api.github.com/repos/dart-lang/http_throttle/labels/cla:%20yes","name":"cla: yes","color":"0052cc","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/dart-lang/http_throttle/pulls/7/commits","review_comments_url":"https://api.github.com/repos/dart-lang/http_throttle/pulls/7/comments","review_comment_url":"https://api.github.com/repos/dart-lang/http_throttle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dart-lang/http_throttle/issues/7/comments","statuses_url":"https://api.github.com/repos/dart-lang/http_throttle/statuses/260b0b7c7b36dd1c8f065a4fc3e81b22d643882b","head":{"label":"dart-lang:fixes","ref":"fixes","sha":"260b0b7c7b36dd1c8f065a4fc3e81b22d643882b","user":{"login":"dart-lang","id":1609975,"avatar_url":"https://avatars0.githubusercontent.com/u/1609975?v=4","gravatar_id":"","url":"https://api.github.com/users/dart-lang","html_url":"https://github.com/dart-lang","followers_url":"https://api.github.com/users/dart-lang/followers","following_url":"https://api.github.com/users/dart-lang/following{/other_user}","gists_url":"https://api.github.com/users/dart-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/dart-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dart-lang/subscriptions","organizations_url":"https://api.github.com/users/dart-lang/orgs","repos_url":"https://api.github.com/users/dart-lang/repos","events_url":"https://api.github.com/users/dart-lang/events{/privacy}","received_events_url":"https://api.github.com/users/dart-lang/received_events","type":"Organization","site_admin":false},"repo":{"id":28161107,"name":"http_throttle","full_name":"dart-lang/http_throttle","owner":{"login":"dart-lang","id":1609975,"avatar_url":"https://avatars0.githubusercontent.com/u/1609975?v=4","gravatar_id":"","url":"https://api.github.com/users/dart-lang","html_url":"https://github.com/dart-lang","followers_url":"https://api.github.com/users/dart-lang/followers","following_url":"https://api.github.com/users/dart-lang/following{/other_user}","gists_url":"https://api.github.com/users/dart-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/dart-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dart-lang/subscriptions","organizations_url":"https://api.github.com/users/dart-lang/orgs","repos_url":"https://api.github.com/users/dart-lang/repos","events_url":"https://api.github.com/users/dart-lang/events{/privacy}","received_events_url":"https://api.github.com/users/dart-lang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dart-lang/http_throttle","description":"HTTP client middleware that throttles requests.","fork":false,"url":"https://api.github.com/repos/dart-lang/http_throttle","forks_url":"https://api.github.com/repos/dart-lang/http_throttle/forks","keys_url":"https://api.github.com/repos/dart-lang/http_throttle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dart-lang/http_throttle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dart-lang/http_throttle/teams","hooks_url":"https://api.github.com/repos/dart-lang/http_throttle/hooks","issue_events_url":"https://api.github.com/repos/dart-lang/http_throttle/issues/events{/number}","events_url":"https://api.github.com/repos/dart-lang/http_throttle/events","assignees_url":"https://api.github.com/repos/dart-lang/http_throttle/assignees{/user}","branches_url":"https://api.github.com/repos/dart-lang/http_throttle/branches{/branch}","tags_url":"https://api.github.com/repos/dart-lang/http_throttle/tags","blobs_url":"https://api.github.com/repos/dart-lang/http_throttle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dart-lang/http_throttle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dart-lang/http_throttle/git/refs{/sha}","trees_url":"https://api.github.com/repos/dart-lang/http_throttle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dart-lang/http_throttle/statuses/{sha}","languages_url":"https://api.github.com/repos/dart-lang/http_throttle/languages","stargazers_url":"https://api.github.com/repos/dart-lang/http_throttle/stargazers","contributors_url":"https://api.github.com/repos/dart-lang/http_throttle/contributors","subscribers_url":"https://api.github.com/repos/dart-lang/http_throttle/subscribers","subscription_url":"https://api.github.com/repos/dart-lang/http_throttle/subscription","commits_url":"https://api.github.com/repos/dart-lang/http_throttle/commits{/sha}","git_commits_url":"https://api.github.com/repos/dart-lang/http_throttle/git/commits{/sha}","comments_url":"https://api.github.com/repos/dart-lang/http_throttle/comments{/number}","issue_comment_url":"https://api.github.com/repos/dart-lang/http_throttle/issues/comments{/number}","contents_url":"https://api.github.com/repos/dart-lang/http_throttle/contents/{+path}","compare_url":"https://api.github.com/repos/dart-lang/http_throttle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dart-lang/http_throttle/merges","archive_url":"https://api.github.com/repos/dart-lang/http_throttle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dart-lang/http_throttle/downloads","issues_url":"https://api.github.com/repos/dart-lang/http_throttle/issues{/number}","pulls_url":"https://api.github.com/repos/dart-lang/http_throttle/pulls{/number}","milestones_url":"https://api.github.com/repos/dart-lang/http_throttle/milestones{/number}","notifications_url":"https://api.github.com/repos/dart-lang/http_throttle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dart-lang/http_throttle/labels{/name}","releases_url":"https://api.github.com/repos/dart-lang/http_throttle/releases{/id}","deployments_url":"https://api.github.com/repos/dart-lang/http_throttle/deployments","created_at":"2014-12-18T00:08:05Z","updated_at":"2018-05-18T22:11:58Z","pushed_at":"2018-05-18T22:28:40Z","git_url":"git://github.com/dart-lang/http_throttle.git","ssh_url":"git@github.com:dart-lang/http_throttle.git","clone_url":"https://github.com/dart-lang/http_throttle.git","svn_url":"https://github.com/dart-lang/http_throttle","homepage":"https://pub.dartlang.org/packages/http_throttle","size":11,"stargazers_count":5,"watchers_count":5,"language":"Dart","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause"},"forks":6,"open_issues":3,"watchers":5,"default_branch":"master"}},"base":{"label":"dart-lang:master","ref":"master","sha":"a219d00068a7c1d78a106c913b4dca65dfa5e805","user":{"login":"dart-lang","id":1609975,"avatar_url":"https://avatars0.githubusercontent.com/u/1609975?v=4","gravatar_id":"","url":"https://api.github.com/users/dart-lang","html_url":"https://github.com/dart-lang","followers_url":"https://api.github.com/users/dart-lang/followers","following_url":"https://api.github.com/users/dart-lang/following{/other_user}","gists_url":"https://api.github.com/users/dart-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/dart-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dart-lang/subscriptions","organizations_url":"https://api.github.com/users/dart-lang/orgs","repos_url":"https://api.github.com/users/dart-lang/repos","events_url":"https://api.github.com/users/dart-lang/events{/privacy}","received_events_url":"https://api.github.com/users/dart-lang/received_events","type":"Organization","site_admin":false},"repo":{"id":28161107,"name":"http_throttle","full_name":"dart-lang/http_throttle","owner":{"login":"dart-lang","id":1609975,"avatar_url":"https://avatars0.githubusercontent.com/u/1609975?v=4","gravatar_id":"","url":"https://api.github.com/users/dart-lang","html_url":"https://github.com/dart-lang","followers_url":"https://api.github.com/users/dart-lang/followers","following_url":"https://api.github.com/users/dart-lang/following{/other_user}","gists_url":"https://api.github.com/users/dart-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/dart-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dart-lang/subscriptions","organizations_url":"https://api.github.com/users/dart-lang/orgs","repos_url":"https://api.github.com/users/dart-lang/repos","events_url":"https://api.github.com/users/dart-lang/events{/privacy}","received_events_url":"https://api.github.com/users/dart-lang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dart-lang/http_throttle","description":"HTTP client middleware that throttles requests.","fork":false,"url":"https://api.github.com/repos/dart-lang/http_throttle","forks_url":"https://api.github.com/repos/dart-lang/http_throttle/forks","keys_url":"https://api.github.com/repos/dart-lang/http_throttle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dart-lang/http_throttle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dart-lang/http_throttle/teams","hooks_url":"https://api.github.com/repos/dart-lang/http_throttle/hooks","issue_events_url":"https://api.github.com/repos/dart-lang/http_throttle/issues/events{/number}","events_url":"https://api.github.com/repos/dart-lang/http_throttle/events","assignees_url":"https://api.github.com/repos/dart-lang/http_throttle/assignees{/user}","branches_url":"https://api.github.com/repos/dart-lang/http_throttle/branches{/branch}","tags_url":"https://api.github.com/repos/dart-lang/http_throttle/tags","blobs_url":"https://api.github.com/repos/dart-lang/http_throttle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dart-lang/http_throttle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dart-lang/http_throttle/git/refs{/sha}","trees_url":"https://api.github.com/repos/dart-lang/http_throttle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dart-lang/http_throttle/statuses/{sha}","languages_url":"https://api.github.com/repos/dart-lang/http_throttle/languages","stargazers_url":"https://api.github.com/repos/dart-lang/http_throttle/stargazers","contributors_url":"https://api.github.com/repos/dart-lang/http_throttle/contributors","subscribers_url":"https://api.github.com/repos/dart-lang/http_throttle/subscribers","subscription_url":"https://api.github.com/repos/dart-lang/http_throttle/subscription","commits_url":"https://api.github.com/repos/dart-lang/http_throttle/commits{/sha}","git_commits_url":"https://api.github.com/repos/dart-lang/http_throttle/git/commits{/sha}","comments_url":"https://api.github.com/repos/dart-lang/http_throttle/comments{/number}","issue_comment_url":"https://api.github.com/repos/dart-lang/http_throttle/issues/comments{/number}","contents_url":"https://api.github.com/repos/dart-lang/http_throttle/contents/{+path}","compare_url":"https://api.github.com/repos/dart-lang/http_throttle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dart-lang/http_throttle/merges","archive_url":"https://api.github.com/repos/dart-lang/http_throttle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dart-lang/http_throttle/downloads","issues_url":"https://api.github.com/repos/dart-lang/http_throttle/issues{/number}","pulls_url":"https://api.github.com/repos/dart-lang/http_throttle/pulls{/number}","milestones_url":"https://api.github.com/repos/dart-lang/http_throttle/milestones{/number}","notifications_url":"https://api.github.com/repos/dart-lang/http_throttle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dart-lang/http_throttle/labels{/name}","releases_url":"https://api.github.com/repos/dart-lang/http_throttle/releases{/id}","deployments_url":"https://api.github.com/repos/dart-lang/http_throttle/deployments","created_at":"2014-12-18T00:08:05Z","updated_at":"2018-05-18T22:11:58Z","pushed_at":"2018-05-18T22:28:40Z","git_url":"git://github.com/dart-lang/http_throttle.git","ssh_url":"git@github.com:dart-lang/http_throttle.git","clone_url":"https://github.com/dart-lang/http_throttle.git","svn_url":"https://github.com/dart-lang/http_throttle","homepage":"https://pub.dartlang.org/packages/http_throttle","size":11,"stargazers_count":5,"watchers_count":5,"language":"Dart","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause"},"forks":6,"open_issues":3,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dart-lang/http_throttle/pulls/7"},"html":{"href":"https://github.com/dart-lang/http_throttle/pull/7"},"issue":{"href":"https://api.github.com/repos/dart-lang/http_throttle/issues/7"},"comments":{"href":"https://api.github.com/repos/dart-lang/http_throttle/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/dart-lang/http_throttle/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/dart-lang/http_throttle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dart-lang/http_throttle/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/dart-lang/http_throttle/statuses/260b0b7c7b36dd1c8f065a4fc3e81b22d643882b"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"natebosch"}}