{"action":"created","issue":{"url":"https://api.github.com/repos/kriskowal/q/issues/662","labels_url":"https://api.github.com/repos/kriskowal/q/issues/662/labels{/name}","comments_url":"https://api.github.com/repos/kriskowal/q/issues/662/comments","events_url":"https://api.github.com/repos/kriskowal/q/issues/662/events","html_url":"https://github.com/kriskowal/q/issues/662","id":60559439,"number":662,"title":"deferred.resolve parameters","user":{"login":"aadamsx","id":5341158,"avatar_url":"https://avatars.githubusercontent.com/u/5341158?v=3","gravatar_id":"","url":"https://api.github.com/users/aadamsx","html_url":"https://github.com/aadamsx","followers_url":"https://api.github.com/users/aadamsx/followers","following_url":"https://api.github.com/users/aadamsx/following{/other_user}","gists_url":"https://api.github.com/users/aadamsx/gists{/gist_id}","starred_url":"https://api.github.com/users/aadamsx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aadamsx/subscriptions","organizations_url":"https://api.github.com/users/aadamsx/orgs","repos_url":"https://api.github.com/users/aadamsx/repos","events_url":"https://api.github.com/users/aadamsx/events{/privacy}","received_events_url":"https://api.github.com/users/aadamsx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-10T19:58:09Z","updated_at":"2015-03-11T07:58:27Z","closed_at":null,"body":"How many parameters can a deferred.resolve promise take?\r\n\r\nIt seems only one at a time... it would be great if I could do something like this:\r\n\r\ndeferred.resolve(file, data); // for example.\r\nreturn deferred.promise;"},"comment":{"url":"https://api.github.com/repos/kriskowal/q/issues/comments/78219294","html_url":"https://github.com/kriskowal/q/issues/662#issuecomment-78219294","issue_url":"https://api.github.com/repos/kriskowal/q/issues/662","id":78219294,"user":{"login":"arikon","id":75247,"avatar_url":"https://avatars.githubusercontent.com/u/75247?v=3","gravatar_id":"","url":"https://api.github.com/users/arikon","html_url":"https://github.com/arikon","followers_url":"https://api.github.com/users/arikon/followers","following_url":"https://api.github.com/users/arikon/following{/other_user}","gists_url":"https://api.github.com/users/arikon/gists{/gist_id}","starred_url":"https://api.github.com/users/arikon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arikon/subscriptions","organizations_url":"https://api.github.com/users/arikon/orgs","repos_url":"https://api.github.com/users/arikon/repos","events_url":"https://api.github.com/users/arikon/events{/privacy}","received_events_url":"https://api.github.com/users/arikon/received_events","type":"User","site_admin":false},"created_at":"2015-03-11T07:58:27Z","updated_at":"2015-03-11T07:58:27Z","body":"@aadamsx You could use it like this:\r\n\r\n```js\r\ndeffered.resolve([file.data]);\r\n\r\ndeffered.promise.spread(function(file, data) {\r\n   // ...\r\n});\r\n```"}}