{"action":"created","issue":{"url":"https://api.github.com/repos/mxcl/PromiseKit/issues/778","repository_url":"https://api.github.com/repos/mxcl/PromiseKit","labels_url":"https://api.github.com/repos/mxcl/PromiseKit/issues/778/labels{/name}","comments_url":"https://api.github.com/repos/mxcl/PromiseKit/issues/778/comments","events_url":"https://api.github.com/repos/mxcl/PromiseKit/issues/778/events","html_url":"https://github.com/mxcl/PromiseKit/issues/778","id":297585566,"number":778,"title":"Documentation on Getting Started","user":{"login":"timbms","id":5411131,"avatar_url":"https://avatars0.githubusercontent.com/u/5411131?v=4","gravatar_id":"","url":"https://api.github.com/users/timbms","html_url":"https://github.com/timbms","followers_url":"https://api.github.com/users/timbms/followers","following_url":"https://api.github.com/users/timbms/following{/other_user}","gists_url":"https://api.github.com/users/timbms/gists{/gist_id}","starred_url":"https://api.github.com/users/timbms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timbms/subscriptions","organizations_url":"https://api.github.com/users/timbms/orgs","repos_url":"https://api.github.com/users/timbms/repos","events_url":"https://api.github.com/users/timbms/events{/privacy}","received_events_url":"https://api.github.com/users/timbms/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-15T20:27:47Z","updated_at":"2018-02-15T20:50:26Z","closed_at":null,"author_association":"NONE","body":"Hi Max,\r\n\r\nGetting Started still needs some rework\r\n\r\nfunc fetch(completion: (String?, Error?) -> Void)\r\nHow do we convert this to a promise? Well, it's easy:\r\n\r\nfunc fetch() -> Promise<String> {\r\n    return Promise { foo(completion: $0.resolve) }\r\n}\r\n\r\n-->  return Promise { fetch(completion: $0.resolve) }\r\n\r\n\r\nYou may provde the expanded version more readable:\r\n--> Typo\r\n\r\n\r\nfunc fetch() -> Promise<String> {\r\n    return Promise { seal in\r\n        foo { result, error in\r\n            seal.resolve(result, error)\r\n        }\r\n    }\r\n}\r\n\r\nfoo { result, error in\r\n--> \r\nfetch { result, error in\r\n\r\n* PromiseKit version: 6.0\r\n* Xcode version: 9.2\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mxcl/PromiseKit/issues/comments/366057236","html_url":"https://github.com/mxcl/PromiseKit/issues/778#issuecomment-366057236","issue_url":"https://api.github.com/repos/mxcl/PromiseKit/issues/778","id":366057236,"user":{"login":"mxcl","id":58962,"avatar_url":"https://avatars2.githubusercontent.com/u/58962?v=4","gravatar_id":"","url":"https://api.github.com/users/mxcl","html_url":"https://github.com/mxcl","followers_url":"https://api.github.com/users/mxcl/followers","following_url":"https://api.github.com/users/mxcl/following{/other_user}","gists_url":"https://api.github.com/users/mxcl/gists{/gist_id}","starred_url":"https://api.github.com/users/mxcl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mxcl/subscriptions","organizations_url":"https://api.github.com/users/mxcl/orgs","repos_url":"https://api.github.com/users/mxcl/repos","events_url":"https://api.github.com/users/mxcl/events{/privacy}","received_events_url":"https://api.github.com/users/mxcl/received_events","type":"User","site_admin":false},"created_at":"2018-02-15T20:50:26Z","updated_at":"2018-02-15T20:50:26Z","author_association":"OWNER","body":"This is unreadable. Can you please use markdown to format your ticket? Even better, fork the project and fix these issues yourself."}}
{"actor":{"display_login":"mxcl"}}