{"action":"created","issue":{"url":"https://api.github.com/repos/Thomvis/BrightFutures/issues/161","repository_url":"https://api.github.com/repos/Thomvis/BrightFutures","labels_url":"https://api.github.com/repos/Thomvis/BrightFutures/issues/161/labels{/name}","comments_url":"https://api.github.com/repos/Thomvis/BrightFutures/issues/161/comments","events_url":"https://api.github.com/repos/Thomvis/BrightFutures/issues/161/events","html_url":"https://github.com/Thomvis/BrightFutures/issues/161","id":188853454,"number":161,"title":"Question: Enforcing order of execution when dealing with many futures","user":{"login":"golfguy0082","id":9961208,"avatar_url":"https://avatars.githubusercontent.com/u/9961208?v=3","gravatar_id":"","url":"https://api.github.com/users/golfguy0082","html_url":"https://github.com/golfguy0082","followers_url":"https://api.github.com/users/golfguy0082/followers","following_url":"https://api.github.com/users/golfguy0082/following{/other_user}","gists_url":"https://api.github.com/users/golfguy0082/gists{/gist_id}","starred_url":"https://api.github.com/users/golfguy0082/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/golfguy0082/subscriptions","organizations_url":"https://api.github.com/users/golfguy0082/orgs","repos_url":"https://api.github.com/users/golfguy0082/repos","events_url":"https://api.github.com/users/golfguy0082/events{/privacy}","received_events_url":"https://api.github.com/users/golfguy0082/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-11T21:20:00Z","updated_at":"2016-12-24T10:07:21Z","closed_at":"2016-12-24T10:07:21Z","body":"This feels like I'm making it harder than it needs to be......suppose you have n closures that return futures:\r\n\r\n`var methods: [() -> Future<String, MyError>]`\r\n\r\nSuppose I want to execute these closures IN ORDER (such that methods[n+1] will begin execution at the completion of methods[n]).  At first I thought I wanted the sequence() method, but that method assumes I have FUTURES instead of closures that RETURN a future.  Is this ACTUALLY a hard problem, or am I being an idiot?"},"comment":{"url":"https://api.github.com/repos/Thomvis/BrightFutures/issues/comments/269078040","html_url":"https://github.com/Thomvis/BrightFutures/issues/161#issuecomment-269078040","issue_url":"https://api.github.com/repos/Thomvis/BrightFutures/issues/161","id":269078040,"user":{"login":"Thomvis","id":134170,"avatar_url":"https://avatars.githubusercontent.com/u/134170?v=3","gravatar_id":"","url":"https://api.github.com/users/Thomvis","html_url":"https://github.com/Thomvis","followers_url":"https://api.github.com/users/Thomvis/followers","following_url":"https://api.github.com/users/Thomvis/following{/other_user}","gists_url":"https://api.github.com/users/Thomvis/gists{/gist_id}","starred_url":"https://api.github.com/users/Thomvis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Thomvis/subscriptions","organizations_url":"https://api.github.com/users/Thomvis/orgs","repos_url":"https://api.github.com/users/Thomvis/repos","events_url":"https://api.github.com/users/Thomvis/events{/privacy}","received_events_url":"https://api.github.com/users/Thomvis/received_events","type":"User","site_admin":false},"created_at":"2016-12-24T10:07:21Z","updated_at":"2016-12-24T10:07:21Z","body":"Closing this issue because of inactivity. Feel free to reopen if you have an update."}}
{"actor":{"display_login":"Thomvis"}}