{"action":"created","comment":{"url":"https://api.github.com/repos/scalaz/scalaz-zio/pulls/comments/225662309","pull_request_review_id":165309982,"id":225662309,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNTY2MjMwOQ==","diff_hunk":"@@ -35,12 +35,6 @@ final class Ref[A] private (private val value: AtomicReference[A]) extends AnyVa\n    */\n   final def setLater(a: A): IO[Nothing, Unit] = IO.sync(value.lazySet(a))\n \n-  /**","path":"core/shared/src/main/scala/scalaz/zio/Ref.scala","position":4,"original_position":4,"commit_id":"97700e838c50ce2ef5ae652a37e44023dc83a258","original_commit_id":"97700e838c50ce2ef5ae652a37e44023dc83a258","user":{"login":"wi101","id":3535357,"node_id":"MDQ6VXNlcjM1MzUzNTc=","avatar_url":"https://avatars1.githubusercontent.com/u/3535357?v=4","gravatar_id":"","url":"https://api.github.com/users/wi101","html_url":"https://github.com/wi101","followers_url":"https://api.github.com/users/wi101/followers","following_url":"https://api.github.com/users/wi101/following{/other_user}","gists_url":"https://api.github.com/users/wi101/gists{/gist_id}","starred_url":"https://api.github.com/users/wi101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wi101/subscriptions","organizations_url":"https://api.github.com/users/wi101/orgs","repos_url":"https://api.github.com/users/wi101/repos","events_url":"https://api.github.com/users/wi101/events{/privacy}","received_events_url":"https://api.github.com/users/wi101/received_events","type":"User","site_admin":false},"body":"Update the test cases in `RefSpec` where we used `setLater` & `trySet` & `compareAndSet`","created_at":"2018-10-16T18:40:29Z","updated_at":"2018-10-16T18:51:41Z","html_url":"https://github.com/scalaz/scalaz-zio/pull/301#discussion_r225662309","pull_request_url":"https://api.github.com/repos/scalaz/scalaz-zio/pulls/301","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/scalaz/scalaz-zio/pulls/comments/225662309"},"html":{"href":"https://github.com/scalaz/scalaz-zio/pull/301#discussion_r225662309"},"pull_request":{"href":"https://api.github.com/repos/scalaz/scalaz-zio/pulls/301"}}},"pull_request":{"url":"https://api.github.com/repos/scalaz/scalaz-zio/pulls/301","id":223302403,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIzMzAyNDAz","html_url":"https://github.com/scalaz/scalaz-zio/pull/301","diff_url":"https://github.com/scalaz/scalaz-zio/pull/301.diff","patch_url":"https://github.com/scalaz/scalaz-zio/pull/301.patch","issue_url":"https://api.github.com/repos/scalaz/scalaz-zio/issues/301","number":301,"state":"open","locked":false,"title":"Introduce RefM, which is like Ref but can handle effectful atomic updates","user":{"login":"jdegoes","id":156745,"node_id":"MDQ6VXNlcjE1Njc0NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/156745?v=4","gravatar_id":"","url":"https://api.github.com/users/jdegoes","html_url":"https://github.com/jdegoes","followers_url":"https://api.github.com/users/jdegoes/followers","following_url":"https://api.github.com/users/jdegoes/following{/other_user}","gists_url":"https://api.github.com/users/jdegoes/gists{/gist_id}","starred_url":"https://api.github.com/users/jdegoes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdegoes/subscriptions","organizations_url":"https://api.github.com/users/jdegoes/orgs","repos_url":"https://api.github.com/users/jdegoes/repos","events_url":"https://api.github.com/users/jdegoes/events{/privacy}","received_events_url":"https://api.github.com/users/jdegoes/received_events","type":"User","site_admin":false},"body":"I've found myself reinventing this over many different projects. Better to live in ZIO.\r\n\r\nIt's a version of `Ref` whose `update` and `modify` methods accept effectful update/modify functions.\r\n\r\nThe API is otherwise identical. I also pared down the `Ref` API, deleting useless methods.","created_at":"2018-10-16T15:46:29Z","updated_at":"2018-10-16T18:51:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"327288e27cc7be33a5f356801a8588f699dbd514","assignee":null,"assignees":[],"requested_reviewers":[{"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}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/scalaz/scalaz-zio/pulls/301/commits","review_comments_url":"https://api.github.com/repos/scalaz/scalaz-zio/pulls/301/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/301/comments","statuses_url":"https://api.github.com/repos/scalaz/scalaz-zio/statuses/97700e838c50ce2ef5ae652a37e44023dc83a258","head":{"label":"jdegoes:master","ref":"master","sha":"97700e838c50ce2ef5ae652a37e44023dc83a258","user":{"login":"jdegoes","id":156745,"node_id":"MDQ6VXNlcjE1Njc0NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/156745?v=4","gravatar_id":"","url":"https://api.github.com/users/jdegoes","html_url":"https://github.com/jdegoes","followers_url":"https://api.github.com/users/jdegoes/followers","following_url":"https://api.github.com/users/jdegoes/following{/other_user}","gists_url":"https://api.github.com/users/jdegoes/gists{/gist_id}","starred_url":"https://api.github.com/users/jdegoes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdegoes/subscriptions","organizations_url":"https://api.github.com/users/jdegoes/orgs","repos_url":"https://api.github.com/users/jdegoes/repos","events_url":"https://api.github.com/users/jdegoes/events{/privacy}","received_events_url":"https://api.github.com/users/jdegoes/received_events","type":"User","site_admin":false},"repo":{"id":137070427,"node_id":"MDEwOlJlcG9zaXRvcnkxMzcwNzA0Mjc=","name":"scalaz-zio","full_name":"jdegoes/scalaz-zio","private":false,"owner":{"login":"jdegoes","id":156745,"node_id":"MDQ6VXNlcjE1Njc0NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/156745?v=4","gravatar_id":"","url":"https://api.github.com/users/jdegoes","html_url":"https://github.com/jdegoes","followers_url":"https://api.github.com/users/jdegoes/followers","following_url":"https://api.github.com/users/jdegoes/following{/other_user}","gists_url":"https://api.github.com/users/jdegoes/gists{/gist_id}","starred_url":"https://api.github.com/users/jdegoes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdegoes/subscriptions","organizations_url":"https://api.github.com/users/jdegoes/orgs","repos_url":"https://api.github.com/users/jdegoes/repos","events_url":"https://api.github.com/users/jdegoes/events{/privacy}","received_events_url":"https://api.github.com/users/jdegoes/received_events","type":"User","site_admin":false},"html_url":"https://github.com/jdegoes/scalaz-zio","description":"ZIO — A principled, powerful, standalone effect data type for any Scala project.","fork":true,"url":"https://api.github.com/repos/jdegoes/scalaz-zio","forks_url":"https://api.github.com/repos/jdegoes/scalaz-zio/forks","keys_url":"https://api.github.com/repos/jdegoes/scalaz-zio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jdegoes/scalaz-zio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jdegoes/scalaz-zio/teams","hooks_url":"https://api.github.com/repos/jdegoes/scalaz-zio/hooks","issue_events_url":"https://api.github.com/repos/jdegoes/scalaz-zio/issues/events{/number}","events_url":"https://api.github.com/repos/jdegoes/scalaz-zio/events","assignees_url":"https://api.github.com/repos/jdegoes/scalaz-zio/assignees{/user}","branches_url":"https://api.github.com/repos/jdegoes/scalaz-zio/branches{/branch}","tags_url":"https://api.github.com/repos/jdegoes/scalaz-zio/tags","blobs_url":"https://api.github.com/repos/jdegoes/scalaz-zio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jdegoes/scalaz-zio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jdegoes/scalaz-zio/git/refs{/sha}","trees_url":"https://api.github.com/repos/jdegoes/scalaz-zio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jdegoes/scalaz-zio/statuses/{sha}","languages_url":"https://api.github.com/repos/jdegoes/scalaz-zio/languages","stargazers_url":"https://api.github.com/repos/jdegoes/scalaz-zio/stargazers","contributors_url":"https://api.github.com/repos/jdegoes/scalaz-zio/contributors","subscribers_url":"https://api.github.com/repos/jdegoes/scalaz-zio/subscribers","subscription_url":"https://api.github.com/repos/jdegoes/scalaz-zio/subscription","commits_url":"https://api.github.com/repos/jdegoes/scalaz-zio/commits{/sha}","git_commits_url":"https://api.github.com/repos/jdegoes/scalaz-zio/git/commits{/sha}","comments_url":"https://api.github.com/repos/jdegoes/scalaz-zio/comments{/number}","issue_comment_url":"https://api.github.com/repos/jdegoes/scalaz-zio/issues/comments{/number}","contents_url":"https://api.github.com/repos/jdegoes/scalaz-zio/contents/{+path}","compare_url":"https://api.github.com/repos/jdegoes/scalaz-zio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jdegoes/scalaz-zio/merges","archive_url":"https://api.github.com/repos/jdegoes/scalaz-zio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jdegoes/scalaz-zio/downloads","issues_url":"https://api.github.com/repos/jdegoes/scalaz-zio/issues{/number}","pulls_url":"https://api.github.com/repos/jdegoes/scalaz-zio/pulls{/number}","milestones_url":"https://api.github.com/repos/jdegoes/scalaz-zio/milestones{/number}","notifications_url":"https://api.github.com/repos/jdegoes/scalaz-zio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jdegoes/scalaz-zio/labels{/name}","releases_url":"https://api.github.com/repos/jdegoes/scalaz-zio/releases{/id}","deployments_url":"https://api.github.com/repos/jdegoes/scalaz-zio/deployments","created_at":"2018-06-12T12:45:26Z","updated_at":"2018-10-16T17:06:38Z","pushed_at":"2018-10-16T17:07:01Z","git_url":"git://github.com/jdegoes/scalaz-zio.git","ssh_url":"git@github.com:jdegoes/scalaz-zio.git","clone_url":"https://github.com/jdegoes/scalaz-zio.git","svn_url":"https://github.com/jdegoes/scalaz-zio","homepage":"","size":1217,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"base":{"label":"scalaz:master","ref":"master","sha":"c56e41b9daa532aebac792c0a61ba8ded795f0ce","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-10-15T21:49:26Z","pushed_at":"2018-10-16T17:28:01Z","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":1904,"stargazers_count":380,"watchers_count":380,"language":"Scala","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":103,"mirror_url":null,"archived":false,"open_issues_count":58,"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":103,"open_issues":58,"watchers":380,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scalaz/scalaz-zio/pulls/301"},"html":{"href":"https://github.com/scalaz/scalaz-zio/pull/301"},"issue":{"href":"https://api.github.com/repos/scalaz/scalaz-zio/issues/301"},"comments":{"href":"https://api.github.com/repos/scalaz/scalaz-zio/issues/301/comments"},"review_comments":{"href":"https://api.github.com/repos/scalaz/scalaz-zio/pulls/301/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/301/commits"},"statuses":{"href":"https://api.github.com/repos/scalaz/scalaz-zio/statuses/97700e838c50ce2ef5ae652a37e44023dc83a258"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"wi101"}}