{"action":"opened","number":270,"pull_request":{"url":"https://api.github.com/repos/scalaz/scalaz-zio/pulls/270","id":218307951,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE4MzA3OTUx","html_url":"https://github.com/scalaz/scalaz-zio/pull/270","diff_url":"https://github.com/scalaz/scalaz-zio/pull/270.diff","patch_url":"https://github.com/scalaz/scalaz-zio/pull/270.patch","issue_url":"https://api.github.com/repos/scalaz/scalaz-zio/issues/270","number":270,"state":"open","locked":false,"title":"Make `use` interruptible in `IO.bracket0`","user":{"login":"regiskuckaertz","id":629976,"node_id":"MDQ6VXNlcjYyOTk3Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/629976?v=4","gravatar_id":"","url":"https://api.github.com/users/regiskuckaertz","html_url":"https://github.com/regiskuckaertz","followers_url":"https://api.github.com/users/regiskuckaertz/followers","following_url":"https://api.github.com/users/regiskuckaertz/following{/other_user}","gists_url":"https://api.github.com/users/regiskuckaertz/gists{/gist_id}","starred_url":"https://api.github.com/users/regiskuckaertz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/regiskuckaertz/subscriptions","organizations_url":"https://api.github.com/users/regiskuckaertz/orgs","repos_url":"https://api.github.com/users/regiskuckaertz/repos","events_url":"https://api.github.com/users/regiskuckaertz/events{/privacy}","received_events_url":"https://api.github.com/users/regiskuckaertz/received_events","type":"User","site_admin":false},"body":"Rewrites `IO.bracket0` following @jdegoes 's description [here](https://github.com/scalaz/scalaz-zio/pull/247#issuecomment-424509856).\r\n\r\n> You need to fork inside the uninterruptible section, right after setting the ref containing the resource. Forking can't fail so it's safe to do that; you return the fiber from the uninterruptible section. Then outside the interruptible section, you join on the forked use. Finally, you return that value, all wrapped in ensuring to make sure that if acquire succeeds (hence, necessarily: the ref is set, and use is forked), there will be an exit value.\r\n\r\nIt's not quite there yet but I'm getting closer.","created_at":"2018-09-26T13:02:32Z","updated_at":"2018-09-26T13:02:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/scalaz/scalaz-zio/pulls/270/commits","review_comments_url":"https://api.github.com/repos/scalaz/scalaz-zio/pulls/270/comments","review_comment_url":"https://api.github.com/repos/scalaz/scalaz-zio/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scalaz/scalaz-zio/issues/270/comments","statuses_url":"https://api.github.com/repos/scalaz/scalaz-zio/statuses/b2e4b9367bb6c8ce31f378aeeb800215b3d880ea","head":{"label":"regiskuckaertz:rk-bracket0-interruptible","ref":"rk-bracket0-interruptible","sha":"b2e4b9367bb6c8ce31f378aeeb800215b3d880ea","user":{"login":"regiskuckaertz","id":629976,"node_id":"MDQ6VXNlcjYyOTk3Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/629976?v=4","gravatar_id":"","url":"https://api.github.com/users/regiskuckaertz","html_url":"https://github.com/regiskuckaertz","followers_url":"https://api.github.com/users/regiskuckaertz/followers","following_url":"https://api.github.com/users/regiskuckaertz/following{/other_user}","gists_url":"https://api.github.com/users/regiskuckaertz/gists{/gist_id}","starred_url":"https://api.github.com/users/regiskuckaertz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/regiskuckaertz/subscriptions","organizations_url":"https://api.github.com/users/regiskuckaertz/orgs","repos_url":"https://api.github.com/users/regiskuckaertz/repos","events_url":"https://api.github.com/users/regiskuckaertz/events{/privacy}","received_events_url":"https://api.github.com/users/regiskuckaertz/received_events","type":"User","site_admin":false},"repo":{"id":136933794,"node_id":"MDEwOlJlcG9zaXRvcnkxMzY5MzM3OTQ=","name":"scalaz-zio","full_name":"regiskuckaertz/scalaz-zio","private":false,"owner":{"login":"regiskuckaertz","id":629976,"node_id":"MDQ6VXNlcjYyOTk3Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/629976?v=4","gravatar_id":"","url":"https://api.github.com/users/regiskuckaertz","html_url":"https://github.com/regiskuckaertz","followers_url":"https://api.github.com/users/regiskuckaertz/followers","following_url":"https://api.github.com/users/regiskuckaertz/following{/other_user}","gists_url":"https://api.github.com/users/regiskuckaertz/gists{/gist_id}","starred_url":"https://api.github.com/users/regiskuckaertz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/regiskuckaertz/subscriptions","organizations_url":"https://api.github.com/users/regiskuckaertz/orgs","repos_url":"https://api.github.com/users/regiskuckaertz/repos","events_url":"https://api.github.com/users/regiskuckaertz/events{/privacy}","received_events_url":"https://api.github.com/users/regiskuckaertz/received_events","type":"User","site_admin":false},"html_url":"https://github.com/regiskuckaertz/scalaz-zio","description":"ZIO — A principled, powerful, standalone effect data type for any Scala project.","fork":true,"url":"https://api.github.com/repos/regiskuckaertz/scalaz-zio","forks_url":"https://api.github.com/repos/regiskuckaertz/scalaz-zio/forks","keys_url":"https://api.github.com/repos/regiskuckaertz/scalaz-zio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/regiskuckaertz/scalaz-zio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/regiskuckaertz/scalaz-zio/teams","hooks_url":"https://api.github.com/repos/regiskuckaertz/scalaz-zio/hooks","issue_events_url":"https://api.github.com/repos/regiskuckaertz/scalaz-zio/issues/events{/number}","events_url":"https://api.github.com/repos/regiskuckaertz/scalaz-zio/events","assignees_url":"https://api.github.com/repos/regiskuckaertz/scalaz-zio/assignees{/user}","branches_url":"https://api.github.com/repos/regiskuckaertz/scalaz-zio/branches{/branch}","tags_url":"https://api.github.com/repos/regiskuckaertz/scalaz-zio/tags","blobs_url":"https://api.github.com/repos/regiskuckaertz/scalaz-zio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/regiskuckaertz/scalaz-zio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/regiskuckaertz/scalaz-zio/git/refs{/sha}","trees_url":"https://api.github.com/repos/regiskuckaertz/scalaz-zio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/regiskuckaertz/scalaz-zio/statuses/{sha}","languages_url":"https://api.github.com/repos/regiskuckaertz/scalaz-zio/languages","stargazers_url":"https://api.github.com/repos/regiskuckaertz/scalaz-zio/stargazers","contributors_url":"https://api.github.com/repos/regiskuckaertz/scalaz-zio/contributors","subscribers_url":"https://api.github.com/repos/regiskuckaertz/scalaz-zio/subscribers","subscription_url":"https://api.github.com/repos/regiskuckaertz/scalaz-zio/subscription","commits_url":"https://api.github.com/repos/regiskuckaertz/scalaz-zio/commits{/sha}","git_commits_url":"https://api.github.com/repos/regiskuckaertz/scalaz-zio/git/commits{/sha}","comments_url":"https://api.github.com/repos/regiskuckaertz/scalaz-zio/comments{/number}","issue_comment_url":"https://api.github.com/repos/regiskuckaertz/scalaz-zio/issues/comments{/number}","contents_url":"https://api.github.com/repos/regiskuckaertz/scalaz-zio/contents/{+path}","compare_url":"https://api.github.com/repos/regiskuckaertz/scalaz-zio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/regiskuckaertz/scalaz-zio/merges","archive_url":"https://api.github.com/repos/regiskuckaertz/scalaz-zio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/regiskuckaertz/scalaz-zio/downloads","issues_url":"https://api.github.com/repos/regiskuckaertz/scalaz-zio/issues{/number}","pulls_url":"https://api.github.com/repos/regiskuckaertz/scalaz-zio/pulls{/number}","milestones_url":"https://api.github.com/repos/regiskuckaertz/scalaz-zio/milestones{/number}","notifications_url":"https://api.github.com/repos/regiskuckaertz/scalaz-zio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/regiskuckaertz/scalaz-zio/labels{/name}","releases_url":"https://api.github.com/repos/regiskuckaertz/scalaz-zio/releases{/id}","deployments_url":"https://api.github.com/repos/regiskuckaertz/scalaz-zio/deployments","created_at":"2018-06-11T13:57:11Z","updated_at":"2018-09-25T15:29:29Z","pushed_at":"2018-09-26T12:59:09Z","git_url":"git://github.com/regiskuckaertz/scalaz-zio.git","ssh_url":"git@github.com:regiskuckaertz/scalaz-zio.git","clone_url":"https://github.com/regiskuckaertz/scalaz-zio.git","svn_url":"https://github.com/regiskuckaertz/scalaz-zio","homepage":"","size":1142,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"scalaz:master","ref":"master","sha":"daef8b6de504e9b28b3820314f0417d2b0140e0b","user":{"login":"scalaz","id":183416,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4MzQxNg==","avatar_url":"https://avatars0.githubusercontent.com/u/183416?v=4","gravatar_id":"","url":"https://api.github.com/users/scalaz","html_url":"https://github.com/scalaz","followers_url":"https://api.github.com/users/scalaz/followers","following_url":"https://api.github.com/users/scalaz/following{/other_user}","gists_url":"https://api.github.com/users/scalaz/gists{/gist_id}","starred_url":"https://api.github.com/users/scalaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scalaz/subscriptions","organizations_url":"https://api.github.com/users/scalaz/orgs","repos_url":"https://api.github.com/users/scalaz/repos","events_url":"https://api.github.com/users/scalaz/events{/privacy}","received_events_url":"https://api.github.com/users/scalaz/received_events","type":"Organization","site_admin":false},"repo":{"id":134079884,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQwNzk4ODQ=","name":"scalaz-zio","full_name":"scalaz/scalaz-zio","private":false,"owner":{"login":"scalaz","id":183416,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4MzQxNg==","avatar_url":"https://avatars0.githubusercontent.com/u/183416?v=4","gravatar_id":"","url":"https://api.github.com/users/scalaz","html_url":"https://github.com/scalaz","followers_url":"https://api.github.com/users/scalaz/followers","following_url":"https://api.github.com/users/scalaz/following{/other_user}","gists_url":"https://api.github.com/users/scalaz/gists{/gist_id}","starred_url":"https://api.github.com/users/scalaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scalaz/subscriptions","organizations_url":"https://api.github.com/users/scalaz/orgs","repos_url":"https://api.github.com/users/scalaz/repos","events_url":"https://api.github.com/users/scalaz/events{/privacy}","received_events_url":"https://api.github.com/users/scalaz/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/scalaz/scalaz-zio","description":"ZIO — A principled, powerful, standalone effect data type for any Scala project.","fork":false,"url":"https://api.github.com/repos/scalaz/scalaz-zio","forks_url":"https://api.github.com/repos/scalaz/scalaz-zio/forks","keys_url":"https://api.github.com/repos/scalaz/scalaz-zio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scalaz/scalaz-zio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scalaz/scalaz-zio/teams","hooks_url":"https://api.github.com/repos/scalaz/scalaz-zio/hooks","issue_events_url":"https://api.github.com/repos/scalaz/scalaz-zio/issues/events{/number}","events_url":"https://api.github.com/repos/scalaz/scalaz-zio/events","assignees_url":"https://api.github.com/repos/scalaz/scalaz-zio/assignees{/user}","branches_url":"https://api.github.com/repos/scalaz/scalaz-zio/branches{/branch}","tags_url":"https://api.github.com/repos/scalaz/scalaz-zio/tags","blobs_url":"https://api.github.com/repos/scalaz/scalaz-zio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scalaz/scalaz-zio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scalaz/scalaz-zio/git/refs{/sha}","trees_url":"https://api.github.com/repos/scalaz/scalaz-zio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scalaz/scalaz-zio/statuses/{sha}","languages_url":"https://api.github.com/repos/scalaz/scalaz-zio/languages","stargazers_url":"https://api.github.com/repos/scalaz/scalaz-zio/stargazers","contributors_url":"https://api.github.com/repos/scalaz/scalaz-zio/contributors","subscribers_url":"https://api.github.com/repos/scalaz/scalaz-zio/subscribers","subscription_url":"https://api.github.com/repos/scalaz/scalaz-zio/subscription","commits_url":"https://api.github.com/repos/scalaz/scalaz-zio/commits{/sha}","git_commits_url":"https://api.github.com/repos/scalaz/scalaz-zio/git/commits{/sha}","comments_url":"https://api.github.com/repos/scalaz/scalaz-zio/comments{/number}","issue_comment_url":"https://api.github.com/repos/scalaz/scalaz-zio/issues/comments{/number}","contents_url":"https://api.github.com/repos/scalaz/scalaz-zio/contents/{+path}","compare_url":"https://api.github.com/repos/scalaz/scalaz-zio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scalaz/scalaz-zio/merges","archive_url":"https://api.github.com/repos/scalaz/scalaz-zio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scalaz/scalaz-zio/downloads","issues_url":"https://api.github.com/repos/scalaz/scalaz-zio/issues{/number}","pulls_url":"https://api.github.com/repos/scalaz/scalaz-zio/pulls{/number}","milestones_url":"https://api.github.com/repos/scalaz/scalaz-zio/milestones{/number}","notifications_url":"https://api.github.com/repos/scalaz/scalaz-zio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scalaz/scalaz-zio/labels{/name}","releases_url":"https://api.github.com/repos/scalaz/scalaz-zio/releases{/id}","deployments_url":"https://api.github.com/repos/scalaz/scalaz-zio/deployments","created_at":"2018-05-19T16:40:37Z","updated_at":"2018-09-26T11:02:14Z","pushed_at":"2018-09-25T21:56:30Z","git_url":"git://github.com/scalaz/scalaz-zio.git","ssh_url":"git@github.com:scalaz/scalaz-zio.git","clone_url":"https://github.com/scalaz/scalaz-zio.git","svn_url":"https://github.com/scalaz/scalaz-zio","homepage":"https://scalaz.github.io/scalaz-zio/","size":1804,"stargazers_count":362,"watchers_count":362,"language":"Scala","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":94,"mirror_url":null,"archived":false,"open_issues_count":45,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":94,"open_issues":45,"watchers":362,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scalaz/scalaz-zio/pulls/270"},"html":{"href":"https://github.com/scalaz/scalaz-zio/pull/270"},"issue":{"href":"https://api.github.com/repos/scalaz/scalaz-zio/issues/270"},"comments":{"href":"https://api.github.com/repos/scalaz/scalaz-zio/issues/270/comments"},"review_comments":{"href":"https://api.github.com/repos/scalaz/scalaz-zio/pulls/270/comments"},"review_comment":{"href":"https://api.github.com/repos/scalaz/scalaz-zio/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scalaz/scalaz-zio/pulls/270/commits"},"statuses":{"href":"https://api.github.com/repos/scalaz/scalaz-zio/statuses/b2e4b9367bb6c8ce31f378aeeb800215b3d880ea"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":2,"additions":26,"deletions":11,"changed_files":2}}
{"actor":{"display_login":"regiskuckaertz"}}