{"action":"closed","number":95,"pull_request":{"url":"https://api.github.com/repos/duemunk/Async/pulls/95","id":80710950,"html_url":"https://github.com/duemunk/Async/pull/95","diff_url":"https://github.com/duemunk/Async/pull/95.diff","patch_url":"https://github.com/duemunk/Async/pull/95.patch","issue_url":"https://api.github.com/repos/duemunk/Async/issues/95","number":95,"state":"closed","locked":false,"title":"Added support in AsyncGroup for dispatch_group_notify()","user":{"login":"JoshHrach","id":1069075,"avatar_url":"https://avatars.githubusercontent.com/u/1069075?v=3","gravatar_id":"","url":"https://api.github.com/users/JoshHrach","html_url":"https://github.com/JoshHrach","followers_url":"https://api.github.com/users/JoshHrach/followers","following_url":"https://api.github.com/users/JoshHrach/following{/other_user}","gists_url":"https://api.github.com/users/JoshHrach/gists{/gist_id}","starred_url":"https://api.github.com/users/JoshHrach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoshHrach/subscriptions","organizations_url":"https://api.github.com/users/JoshHrach/orgs","repos_url":"https://api.github.com/users/JoshHrach/repos","events_url":"https://api.github.com/users/JoshHrach/events{/privacy}","received_events_url":"https://api.github.com/users/JoshHrach/received_events","type":"User","site_admin":false},"body":"While AsyncGroup currently supports calling wait(), that doesn't always work when dealing with a group. An example is trying to call a series of nested functions that eventually perform an asynchronous network call. The group seems to finish, but it appears to complete immediately, leading to no action within the async method and no actual 'waiting'. Thus, if you were performing a segue after waiting and were setting up data for the segue in the group, the segue would complete without any of the data actually being passed along.\r\n\r\nCreating a dispatch_group_notify call lets you wait until something is done and calling the action that needs to be done after the group is complete.  For instance, you can create a group that calls various async methods within the group and trigger a segue after the group has completed its tasks. \r\n\r\nI created this in the AsyncGroup struct. **notify()** is private and called by public **notify\\<QueueName\\>()** functions. For my purposes, I'm only calling items on the main thread in this response, so notifyMain is what I need. But if you want to trigger something in another queue, you can do so.","created_at":"2016-08-09T23:14:25Z","updated_at":"2016-09-21T00:30:09Z","closed_at":"2016-09-21T00:30:09Z","merged_at":null,"merge_commit_sha":"1e33886add9c8fe0fbda79a1d6f6628543a87c3a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/duemunk/Async/pulls/95/commits","review_comments_url":"https://api.github.com/repos/duemunk/Async/pulls/95/comments","review_comment_url":"https://api.github.com/repos/duemunk/Async/pulls/comments{/number}","comments_url":"https://api.github.com/repos/duemunk/Async/issues/95/comments","statuses_url":"https://api.github.com/repos/duemunk/Async/statuses/fb8abc80ff56724d68626892e5fc2c5f239d8f5c","head":{"label":"JoshHrach:master","ref":"master","sha":"fb8abc80ff56724d68626892e5fc2c5f239d8f5c","user":{"login":"JoshHrach","id":1069075,"avatar_url":"https://avatars.githubusercontent.com/u/1069075?v=3","gravatar_id":"","url":"https://api.github.com/users/JoshHrach","html_url":"https://github.com/JoshHrach","followers_url":"https://api.github.com/users/JoshHrach/followers","following_url":"https://api.github.com/users/JoshHrach/following{/other_user}","gists_url":"https://api.github.com/users/JoshHrach/gists{/gist_id}","starred_url":"https://api.github.com/users/JoshHrach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoshHrach/subscriptions","organizations_url":"https://api.github.com/users/JoshHrach/orgs","repos_url":"https://api.github.com/users/JoshHrach/repos","events_url":"https://api.github.com/users/JoshHrach/events{/privacy}","received_events_url":"https://api.github.com/users/JoshHrach/received_events","type":"User","site_admin":false},"repo":{"id":65321947,"name":"Async","full_name":"JoshHrach/Async","owner":{"login":"JoshHrach","id":1069075,"avatar_url":"https://avatars.githubusercontent.com/u/1069075?v=3","gravatar_id":"","url":"https://api.github.com/users/JoshHrach","html_url":"https://github.com/JoshHrach","followers_url":"https://api.github.com/users/JoshHrach/followers","following_url":"https://api.github.com/users/JoshHrach/following{/other_user}","gists_url":"https://api.github.com/users/JoshHrach/gists{/gist_id}","starred_url":"https://api.github.com/users/JoshHrach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoshHrach/subscriptions","organizations_url":"https://api.github.com/users/JoshHrach/orgs","repos_url":"https://api.github.com/users/JoshHrach/repos","events_url":"https://api.github.com/users/JoshHrach/events{/privacy}","received_events_url":"https://api.github.com/users/JoshHrach/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JoshHrach/Async","description":"Syntactic sugar in Swift for asynchronous dispatches in Grand Central Dispatch","fork":true,"url":"https://api.github.com/repos/JoshHrach/Async","forks_url":"https://api.github.com/repos/JoshHrach/Async/forks","keys_url":"https://api.github.com/repos/JoshHrach/Async/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JoshHrach/Async/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JoshHrach/Async/teams","hooks_url":"https://api.github.com/repos/JoshHrach/Async/hooks","issue_events_url":"https://api.github.com/repos/JoshHrach/Async/issues/events{/number}","events_url":"https://api.github.com/repos/JoshHrach/Async/events","assignees_url":"https://api.github.com/repos/JoshHrach/Async/assignees{/user}","branches_url":"https://api.github.com/repos/JoshHrach/Async/branches{/branch}","tags_url":"https://api.github.com/repos/JoshHrach/Async/tags","blobs_url":"https://api.github.com/repos/JoshHrach/Async/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JoshHrach/Async/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JoshHrach/Async/git/refs{/sha}","trees_url":"https://api.github.com/repos/JoshHrach/Async/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JoshHrach/Async/statuses/{sha}","languages_url":"https://api.github.com/repos/JoshHrach/Async/languages","stargazers_url":"https://api.github.com/repos/JoshHrach/Async/stargazers","contributors_url":"https://api.github.com/repos/JoshHrach/Async/contributors","subscribers_url":"https://api.github.com/repos/JoshHrach/Async/subscribers","subscription_url":"https://api.github.com/repos/JoshHrach/Async/subscription","commits_url":"https://api.github.com/repos/JoshHrach/Async/commits{/sha}","git_commits_url":"https://api.github.com/repos/JoshHrach/Async/git/commits{/sha}","comments_url":"https://api.github.com/repos/JoshHrach/Async/comments{/number}","issue_comment_url":"https://api.github.com/repos/JoshHrach/Async/issues/comments{/number}","contents_url":"https://api.github.com/repos/JoshHrach/Async/contents/{+path}","compare_url":"https://api.github.com/repos/JoshHrach/Async/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JoshHrach/Async/merges","archive_url":"https://api.github.com/repos/JoshHrach/Async/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JoshHrach/Async/downloads","issues_url":"https://api.github.com/repos/JoshHrach/Async/issues{/number}","pulls_url":"https://api.github.com/repos/JoshHrach/Async/pulls{/number}","milestones_url":"https://api.github.com/repos/JoshHrach/Async/milestones{/number}","notifications_url":"https://api.github.com/repos/JoshHrach/Async/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JoshHrach/Async/labels{/name}","releases_url":"https://api.github.com/repos/JoshHrach/Async/releases{/id}","deployments_url":"https://api.github.com/repos/JoshHrach/Async/deployments","created_at":"2016-08-09T19:22:23Z","updated_at":"2016-08-09T19:22:25Z","pushed_at":"2016-09-21T00:23:48Z","git_url":"git://github.com/JoshHrach/Async.git","ssh_url":"git@github.com:JoshHrach/Async.git","clone_url":"https://github.com/JoshHrach/Async.git","svn_url":"https://github.com/JoshHrach/Async","homepage":null,"size":411,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"duemunk:master","ref":"master","sha":"9ec1c44799ca32133a52f32928dcc47b28fb2291","user":{"login":"duemunk","id":489138,"avatar_url":"https://avatars.githubusercontent.com/u/489138?v=3","gravatar_id":"","url":"https://api.github.com/users/duemunk","html_url":"https://github.com/duemunk","followers_url":"https://api.github.com/users/duemunk/followers","following_url":"https://api.github.com/users/duemunk/following{/other_user}","gists_url":"https://api.github.com/users/duemunk/gists{/gist_id}","starred_url":"https://api.github.com/users/duemunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duemunk/subscriptions","organizations_url":"https://api.github.com/users/duemunk/orgs","repos_url":"https://api.github.com/users/duemunk/repos","events_url":"https://api.github.com/users/duemunk/events{/privacy}","received_events_url":"https://api.github.com/users/duemunk/received_events","type":"User","site_admin":false},"repo":{"id":22255647,"name":"Async","full_name":"duemunk/Async","owner":{"login":"duemunk","id":489138,"avatar_url":"https://avatars.githubusercontent.com/u/489138?v=3","gravatar_id":"","url":"https://api.github.com/users/duemunk","html_url":"https://github.com/duemunk","followers_url":"https://api.github.com/users/duemunk/followers","following_url":"https://api.github.com/users/duemunk/following{/other_user}","gists_url":"https://api.github.com/users/duemunk/gists{/gist_id}","starred_url":"https://api.github.com/users/duemunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duemunk/subscriptions","organizations_url":"https://api.github.com/users/duemunk/orgs","repos_url":"https://api.github.com/users/duemunk/repos","events_url":"https://api.github.com/users/duemunk/events{/privacy}","received_events_url":"https://api.github.com/users/duemunk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/duemunk/Async","description":"Syntactic sugar in Swift for asynchronous dispatches in Grand Central Dispatch","fork":false,"url":"https://api.github.com/repos/duemunk/Async","forks_url":"https://api.github.com/repos/duemunk/Async/forks","keys_url":"https://api.github.com/repos/duemunk/Async/keys{/key_id}","collaborators_url":"https://api.github.com/repos/duemunk/Async/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/duemunk/Async/teams","hooks_url":"https://api.github.com/repos/duemunk/Async/hooks","issue_events_url":"https://api.github.com/repos/duemunk/Async/issues/events{/number}","events_url":"https://api.github.com/repos/duemunk/Async/events","assignees_url":"https://api.github.com/repos/duemunk/Async/assignees{/user}","branches_url":"https://api.github.com/repos/duemunk/Async/branches{/branch}","tags_url":"https://api.github.com/repos/duemunk/Async/tags","blobs_url":"https://api.github.com/repos/duemunk/Async/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/duemunk/Async/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/duemunk/Async/git/refs{/sha}","trees_url":"https://api.github.com/repos/duemunk/Async/git/trees{/sha}","statuses_url":"https://api.github.com/repos/duemunk/Async/statuses/{sha}","languages_url":"https://api.github.com/repos/duemunk/Async/languages","stargazers_url":"https://api.github.com/repos/duemunk/Async/stargazers","contributors_url":"https://api.github.com/repos/duemunk/Async/contributors","subscribers_url":"https://api.github.com/repos/duemunk/Async/subscribers","subscription_url":"https://api.github.com/repos/duemunk/Async/subscription","commits_url":"https://api.github.com/repos/duemunk/Async/commits{/sha}","git_commits_url":"https://api.github.com/repos/duemunk/Async/git/commits{/sha}","comments_url":"https://api.github.com/repos/duemunk/Async/comments{/number}","issue_comment_url":"https://api.github.com/repos/duemunk/Async/issues/comments{/number}","contents_url":"https://api.github.com/repos/duemunk/Async/contents/{+path}","compare_url":"https://api.github.com/repos/duemunk/Async/compare/{base}...{head}","merges_url":"https://api.github.com/repos/duemunk/Async/merges","archive_url":"https://api.github.com/repos/duemunk/Async/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/duemunk/Async/downloads","issues_url":"https://api.github.com/repos/duemunk/Async/issues{/number}","pulls_url":"https://api.github.com/repos/duemunk/Async/pulls{/number}","milestones_url":"https://api.github.com/repos/duemunk/Async/milestones{/number}","notifications_url":"https://api.github.com/repos/duemunk/Async/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/duemunk/Async/labels{/name}","releases_url":"https://api.github.com/repos/duemunk/Async/releases{/id}","deployments_url":"https://api.github.com/repos/duemunk/Async/deployments","created_at":"2014-07-25T12:13:49Z","updated_at":"2016-09-20T13:23:35Z","pushed_at":"2016-09-21T00:23:49Z","git_url":"git://github.com/duemunk/Async.git","ssh_url":"git@github.com:duemunk/Async.git","clone_url":"https://github.com/duemunk/Async.git","svn_url":"https://github.com/duemunk/Async","homepage":null,"size":512,"stargazers_count":3648,"watchers_count":3648,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":252,"mirror_url":null,"open_issues_count":5,"forks":252,"open_issues":5,"watchers":3648,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/duemunk/Async/pulls/95"},"html":{"href":"https://github.com/duemunk/Async/pull/95"},"issue":{"href":"https://api.github.com/repos/duemunk/Async/issues/95"},"comments":{"href":"https://api.github.com/repos/duemunk/Async/issues/95/comments"},"review_comments":{"href":"https://api.github.com/repos/duemunk/Async/pulls/95/comments"},"review_comment":{"href":"https://api.github.com/repos/duemunk/Async/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/duemunk/Async/pulls/95/commits"},"statuses":{"href":"https://api.github.com/repos/duemunk/Async/statuses/fb8abc80ff56724d68626892e5fc2c5f239d8f5c"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":1,"review_comments":0,"commits":5,"additions":3554,"deletions":7864,"changed_files":68}}
{"actor":{"display_login":"JoshHrach"}}