{"action":"opened","number":1503,"pull_request":{"url":"https://api.github.com/repos/flux-framework/flux-core/pulls/1503","id":185749391,"html_url":"https://github.com/flux-framework/flux-core/pull/1503","diff_url":"https://github.com/flux-framework/flux-core/pull/1503.diff","patch_url":"https://github.com/flux-framework/flux-core/pull/1503.patch","issue_url":"https://api.github.com/repos/flux-framework/flux-core/issues/1503","number":1503,"state":"open","locked":false,"title":"libflux: add flux_future_reset()","user":{"login":"garlick","id":169947,"avatar_url":"https://avatars1.githubusercontent.com/u/169947?v=4","gravatar_id":"","url":"https://api.github.com/users/garlick","html_url":"https://github.com/garlick","followers_url":"https://api.github.com/users/garlick/followers","following_url":"https://api.github.com/users/garlick/following{/other_user}","gists_url":"https://api.github.com/users/garlick/gists{/gist_id}","starred_url":"https://api.github.com/users/garlick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garlick/subscriptions","organizations_url":"https://api.github.com/users/garlick/orgs","repos_url":"https://api.github.com/users/garlick/repos","events_url":"https://api.github.com/users/garlick/events{/privacy}","received_events_url":"https://api.github.com/users/garlick/received_events","type":"User","site_admin":false},"body":"This PR adds `flux_future_reset()`, to \"unfulfill\" a future.\r\n\r\nThe driving use case was RPC with multiple response messages.  One can now do this:\r\n```c\r\nflux_future_t *f = flux_rpc (...)\r\ndo {\r\n    flux_rpc_get (f, ...);\r\n    flux_future_reset (f);\r\n} while (condition);\r\nflux_future_destroy (f);\r\n```\r\nor in a continuation, one can conditionally call either `flux_future_reset()` or `flux_future_destroy()` before returning.  If reset, the continuation will be called on the next fulfillment (RPC response, or whatever).\r\n\r\nAdded unit tests and updated man pages.  I reworked the \"user\" man page a bit for better readability also.\r\n\r\nI'd say test coverage might be a little light here, so I'll see how that goes and possibly add more tests.","created_at":"2018-05-03T15:13:20Z","updated_at":"2018-05-03T15:13:20Z","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/flux-framework/flux-core/pulls/1503/commits","review_comments_url":"https://api.github.com/repos/flux-framework/flux-core/pulls/1503/comments","review_comment_url":"https://api.github.com/repos/flux-framework/flux-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/flux-framework/flux-core/issues/1503/comments","statuses_url":"https://api.github.com/repos/flux-framework/flux-core/statuses/1d00eb4fd5308abd3d421c5f9b170955b3649779","head":{"label":"garlick:rpc_multi","ref":"rpc_multi","sha":"1d00eb4fd5308abd3d421c5f9b170955b3649779","user":{"login":"garlick","id":169947,"avatar_url":"https://avatars1.githubusercontent.com/u/169947?v=4","gravatar_id":"","url":"https://api.github.com/users/garlick","html_url":"https://github.com/garlick","followers_url":"https://api.github.com/users/garlick/followers","following_url":"https://api.github.com/users/garlick/following{/other_user}","gists_url":"https://api.github.com/users/garlick/gists{/gist_id}","starred_url":"https://api.github.com/users/garlick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garlick/subscriptions","organizations_url":"https://api.github.com/users/garlick/orgs","repos_url":"https://api.github.com/users/garlick/repos","events_url":"https://api.github.com/users/garlick/events{/privacy}","received_events_url":"https://api.github.com/users/garlick/received_events","type":"User","site_admin":false},"repo":{"id":24518180,"name":"flux-core","full_name":"garlick/flux-core","owner":{"login":"garlick","id":169947,"avatar_url":"https://avatars1.githubusercontent.com/u/169947?v=4","gravatar_id":"","url":"https://api.github.com/users/garlick","html_url":"https://github.com/garlick","followers_url":"https://api.github.com/users/garlick/followers","following_url":"https://api.github.com/users/garlick/following{/other_user}","gists_url":"https://api.github.com/users/garlick/gists{/gist_id}","starred_url":"https://api.github.com/users/garlick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garlick/subscriptions","organizations_url":"https://api.github.com/users/garlick/orgs","repos_url":"https://api.github.com/users/garlick/repos","events_url":"https://api.github.com/users/garlick/events{/privacy}","received_events_url":"https://api.github.com/users/garlick/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/garlick/flux-core","description":"core  services for the Flux resource management framework","fork":true,"url":"https://api.github.com/repos/garlick/flux-core","forks_url":"https://api.github.com/repos/garlick/flux-core/forks","keys_url":"https://api.github.com/repos/garlick/flux-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/garlick/flux-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/garlick/flux-core/teams","hooks_url":"https://api.github.com/repos/garlick/flux-core/hooks","issue_events_url":"https://api.github.com/repos/garlick/flux-core/issues/events{/number}","events_url":"https://api.github.com/repos/garlick/flux-core/events","assignees_url":"https://api.github.com/repos/garlick/flux-core/assignees{/user}","branches_url":"https://api.github.com/repos/garlick/flux-core/branches{/branch}","tags_url":"https://api.github.com/repos/garlick/flux-core/tags","blobs_url":"https://api.github.com/repos/garlick/flux-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/garlick/flux-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/garlick/flux-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/garlick/flux-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/garlick/flux-core/statuses/{sha}","languages_url":"https://api.github.com/repos/garlick/flux-core/languages","stargazers_url":"https://api.github.com/repos/garlick/flux-core/stargazers","contributors_url":"https://api.github.com/repos/garlick/flux-core/contributors","subscribers_url":"https://api.github.com/repos/garlick/flux-core/subscribers","subscription_url":"https://api.github.com/repos/garlick/flux-core/subscription","commits_url":"https://api.github.com/repos/garlick/flux-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/garlick/flux-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/garlick/flux-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/garlick/flux-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/garlick/flux-core/contents/{+path}","compare_url":"https://api.github.com/repos/garlick/flux-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/garlick/flux-core/merges","archive_url":"https://api.github.com/repos/garlick/flux-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/garlick/flux-core/downloads","issues_url":"https://api.github.com/repos/garlick/flux-core/issues{/number}","pulls_url":"https://api.github.com/repos/garlick/flux-core/pulls{/number}","milestones_url":"https://api.github.com/repos/garlick/flux-core/milestones{/number}","notifications_url":"https://api.github.com/repos/garlick/flux-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/garlick/flux-core/labels{/name}","releases_url":"https://api.github.com/repos/garlick/flux-core/releases{/id}","deployments_url":"https://api.github.com/repos/garlick/flux-core/deployments","created_at":"2014-09-26T23:15:54Z","updated_at":"2018-04-24T13:48:47Z","pushed_at":"2018-05-03T14:58:13Z","git_url":"git://github.com/garlick/flux-core.git","ssh_url":"git@github.com:garlick/flux-core.git","clone_url":"https://github.com/garlick/flux-core.git","svn_url":"https://github.com/garlick/flux-core","homepage":"","size":28350,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"flux-framework:master","ref":"master","sha":"333c28351e08973ccf33089db8789f0293653d4a","user":{"login":"flux-framework","id":7545483,"avatar_url":"https://avatars2.githubusercontent.com/u/7545483?v=4","gravatar_id":"","url":"https://api.github.com/users/flux-framework","html_url":"https://github.com/flux-framework","followers_url":"https://api.github.com/users/flux-framework/followers","following_url":"https://api.github.com/users/flux-framework/following{/other_user}","gists_url":"https://api.github.com/users/flux-framework/gists{/gist_id}","starred_url":"https://api.github.com/users/flux-framework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flux-framework/subscriptions","organizations_url":"https://api.github.com/users/flux-framework/orgs","repos_url":"https://api.github.com/users/flux-framework/repos","events_url":"https://api.github.com/users/flux-framework/events{/privacy}","received_events_url":"https://api.github.com/users/flux-framework/received_events","type":"Organization","site_admin":false},"repo":{"id":24517284,"name":"flux-core","full_name":"flux-framework/flux-core","owner":{"login":"flux-framework","id":7545483,"avatar_url":"https://avatars2.githubusercontent.com/u/7545483?v=4","gravatar_id":"","url":"https://api.github.com/users/flux-framework","html_url":"https://github.com/flux-framework","followers_url":"https://api.github.com/users/flux-framework/followers","following_url":"https://api.github.com/users/flux-framework/following{/other_user}","gists_url":"https://api.github.com/users/flux-framework/gists{/gist_id}","starred_url":"https://api.github.com/users/flux-framework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flux-framework/subscriptions","organizations_url":"https://api.github.com/users/flux-framework/orgs","repos_url":"https://api.github.com/users/flux-framework/repos","events_url":"https://api.github.com/users/flux-framework/events{/privacy}","received_events_url":"https://api.github.com/users/flux-framework/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/flux-framework/flux-core","description":"core  services for the Flux resource management framework","fork":false,"url":"https://api.github.com/repos/flux-framework/flux-core","forks_url":"https://api.github.com/repos/flux-framework/flux-core/forks","keys_url":"https://api.github.com/repos/flux-framework/flux-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/flux-framework/flux-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/flux-framework/flux-core/teams","hooks_url":"https://api.github.com/repos/flux-framework/flux-core/hooks","issue_events_url":"https://api.github.com/repos/flux-framework/flux-core/issues/events{/number}","events_url":"https://api.github.com/repos/flux-framework/flux-core/events","assignees_url":"https://api.github.com/repos/flux-framework/flux-core/assignees{/user}","branches_url":"https://api.github.com/repos/flux-framework/flux-core/branches{/branch}","tags_url":"https://api.github.com/repos/flux-framework/flux-core/tags","blobs_url":"https://api.github.com/repos/flux-framework/flux-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/flux-framework/flux-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/flux-framework/flux-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/flux-framework/flux-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/flux-framework/flux-core/statuses/{sha}","languages_url":"https://api.github.com/repos/flux-framework/flux-core/languages","stargazers_url":"https://api.github.com/repos/flux-framework/flux-core/stargazers","contributors_url":"https://api.github.com/repos/flux-framework/flux-core/contributors","subscribers_url":"https://api.github.com/repos/flux-framework/flux-core/subscribers","subscription_url":"https://api.github.com/repos/flux-framework/flux-core/subscription","commits_url":"https://api.github.com/repos/flux-framework/flux-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/flux-framework/flux-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/flux-framework/flux-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/flux-framework/flux-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/flux-framework/flux-core/contents/{+path}","compare_url":"https://api.github.com/repos/flux-framework/flux-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/flux-framework/flux-core/merges","archive_url":"https://api.github.com/repos/flux-framework/flux-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/flux-framework/flux-core/downloads","issues_url":"https://api.github.com/repos/flux-framework/flux-core/issues{/number}","pulls_url":"https://api.github.com/repos/flux-framework/flux-core/pulls{/number}","milestones_url":"https://api.github.com/repos/flux-framework/flux-core/milestones{/number}","notifications_url":"https://api.github.com/repos/flux-framework/flux-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/flux-framework/flux-core/labels{/name}","releases_url":"https://api.github.com/repos/flux-framework/flux-core/releases{/id}","deployments_url":"https://api.github.com/repos/flux-framework/flux-core/deployments","created_at":"2014-09-26T22:27:19Z","updated_at":"2018-05-03T12:41:33Z","pushed_at":"2018-05-03T14:11:23Z","git_url":"git://github.com/flux-framework/flux-core.git","ssh_url":"git@github.com:flux-framework/flux-core.git","clone_url":"https://github.com/flux-framework/flux-core.git","svn_url":"https://github.com/flux-framework/flux-core","homepage":"","size":28140,"stargazers_count":32,"watchers_count":32,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"archived":false,"open_issues_count":186,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":17,"open_issues":186,"watchers":32,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/flux-framework/flux-core/pulls/1503"},"html":{"href":"https://github.com/flux-framework/flux-core/pull/1503"},"issue":{"href":"https://api.github.com/repos/flux-framework/flux-core/issues/1503"},"comments":{"href":"https://api.github.com/repos/flux-framework/flux-core/issues/1503/comments"},"review_comments":{"href":"https://api.github.com/repos/flux-framework/flux-core/pulls/1503/comments"},"review_comment":{"href":"https://api.github.com/repos/flux-framework/flux-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/flux-framework/flux-core/pulls/1503/commits"},"statuses":{"href":"https://api.github.com/repos/flux-framework/flux-core/statuses/1d00eb4fd5308abd3d421c5f9b170955b3649779"}},"author_association":"OWNER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":15,"additions":253,"deletions":75,"changed_files":12}}
{"actor":{"display_login":"garlick"}}