{"action":"created","comment":{"url":"https://api.github.com/repos/magic-lang/ooc-kean/pulls/comments/52572898","id":52572898,"diff_hunk":"@@ -40,15 +40,31 @@ ToRasterTest: class extends Fixture {\n \t\tgpuImage free()\n \t\traster free()\n \t}\n+\ttoRasterAsync: func (sourceImage: RasterImage) {\n+\t\tgpuImage := context createImage(sourceImage)\n+\t\tfuture := gpuImage toRasterAsync() as _ToRasterFuture","path":"test/draw/gpu/ToRasterTest.ooc","position":23,"original_position":23,"commit_id":"4834123ab71fbcc826d43a7a0c298c7565d93c15","original_commit_id":"4834123ab71fbcc826d43a7a0c298c7565d93c15","user":{"login":"emilwestergren","id":7700995,"avatar_url":"https://avatars.githubusercontent.com/u/7700995?v=3","gravatar_id":"","url":"https://api.github.com/users/emilwestergren","html_url":"https://github.com/emilwestergren","followers_url":"https://api.github.com/users/emilwestergren/followers","following_url":"https://api.github.com/users/emilwestergren/following{/other_user}","gists_url":"https://api.github.com/users/emilwestergren/gists{/gist_id}","starred_url":"https://api.github.com/users/emilwestergren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emilwestergren/subscriptions","organizations_url":"https://api.github.com/users/emilwestergren/orgs","repos_url":"https://api.github.com/users/emilwestergren/repos","events_url":"https://api.github.com/users/emilwestergren/events{/privacy}","received_events_url":"https://api.github.com/users/emilwestergren/received_events","type":"User","site_admin":false},"body":"This cast is necessary, otherwise we always get `null` as result.","created_at":"2016-02-11T08:25:32Z","updated_at":"2016-02-11T08:25:32Z","html_url":"https://github.com/magic-lang/ooc-kean/pull/1376#discussion_r52572898","pull_request_url":"https://api.github.com/repos/magic-lang/ooc-kean/pulls/1376","_links":{"self":{"href":"https://api.github.com/repos/magic-lang/ooc-kean/pulls/comments/52572898"},"html":{"href":"https://github.com/magic-lang/ooc-kean/pull/1376#discussion_r52572898"},"pull_request":{"href":"https://api.github.com/repos/magic-lang/ooc-kean/pulls/1376"}}},"pull_request":{"url":"https://api.github.com/repos/magic-lang/ooc-kean/pulls/1376","id":59001354,"html_url":"https://github.com/magic-lang/ooc-kean/pull/1376","diff_url":"https://github.com/magic-lang/ooc-kean/pull/1376.diff","patch_url":"https://github.com/magic-lang/ooc-kean/pull/1376.patch","issue_url":"https://api.github.com/repos/magic-lang/ooc-kean/issues/1376","number":1376,"state":"open","locked":false,"title":"toRasterAsync now returns Future.","user":{"login":"emilwestergren","id":7700995,"avatar_url":"https://avatars.githubusercontent.com/u/7700995?v=3","gravatar_id":"","url":"https://api.github.com/users/emilwestergren","html_url":"https://github.com/emilwestergren","followers_url":"https://api.github.com/users/emilwestergren/followers","following_url":"https://api.github.com/users/emilwestergren/following{/other_user}","gists_url":"https://api.github.com/users/emilwestergren/gists{/gist_id}","starred_url":"https://api.github.com/users/emilwestergren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emilwestergren/subscriptions","organizations_url":"https://api.github.com/users/emilwestergren/orgs","repos_url":"https://api.github.com/users/emilwestergren/repos","events_url":"https://api.github.com/users/emilwestergren/events{/privacy}","received_events_url":"https://api.github.com/users/emilwestergren/received_events","type":"User","site_admin":false},"body":"Currently the user needs to cast the `Future` to the implementation type, otherwise it will not work: `future := gpuImage toRasterAsync() as _ToRasterFuture`\r\n\r\n@thomasfanell is this something that we can fix in the near future or do we simply need to accept it?\r\n\r\n@marcusnaslund @sebastianbaginski what do you think about this?\r\n","created_at":"2016-02-11T08:22:05Z","updated_at":"2016-02-11T08:25:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0cf7f4f153fc98332856c7ed3440adf21c26ae16","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/magic-lang/ooc-kean/pulls/1376/commits","review_comments_url":"https://api.github.com/repos/magic-lang/ooc-kean/pulls/1376/comments","review_comment_url":"https://api.github.com/repos/magic-lang/ooc-kean/pulls/comments{/number}","comments_url":"https://api.github.com/repos/magic-lang/ooc-kean/issues/1376/comments","statuses_url":"https://api.github.com/repos/magic-lang/ooc-kean/statuses/4834123ab71fbcc826d43a7a0c298c7565d93c15","head":{"label":"emilwestergren:future_fix","ref":"future_fix","sha":"4834123ab71fbcc826d43a7a0c298c7565d93c15","user":{"login":"emilwestergren","id":7700995,"avatar_url":"https://avatars.githubusercontent.com/u/7700995?v=3","gravatar_id":"","url":"https://api.github.com/users/emilwestergren","html_url":"https://github.com/emilwestergren","followers_url":"https://api.github.com/users/emilwestergren/followers","following_url":"https://api.github.com/users/emilwestergren/following{/other_user}","gists_url":"https://api.github.com/users/emilwestergren/gists{/gist_id}","starred_url":"https://api.github.com/users/emilwestergren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emilwestergren/subscriptions","organizations_url":"https://api.github.com/users/emilwestergren/orgs","repos_url":"https://api.github.com/users/emilwestergren/repos","events_url":"https://api.github.com/users/emilwestergren/events{/privacy}","received_events_url":"https://api.github.com/users/emilwestergren/received_events","type":"User","site_admin":false},"repo":{"id":25524995,"name":"ooc-kean","full_name":"emilwestergren/ooc-kean","owner":{"login":"emilwestergren","id":7700995,"avatar_url":"https://avatars.githubusercontent.com/u/7700995?v=3","gravatar_id":"","url":"https://api.github.com/users/emilwestergren","html_url":"https://github.com/emilwestergren","followers_url":"https://api.github.com/users/emilwestergren/followers","following_url":"https://api.github.com/users/emilwestergren/following{/other_user}","gists_url":"https://api.github.com/users/emilwestergren/gists{/gist_id}","starred_url":"https://api.github.com/users/emilwestergren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emilwestergren/subscriptions","organizations_url":"https://api.github.com/users/emilwestergren/orgs","repos_url":"https://api.github.com/users/emilwestergren/repos","events_url":"https://api.github.com/users/emilwestergren/events{/privacy}","received_events_url":"https://api.github.com/users/emilwestergren/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/emilwestergren/ooc-kean","description":"OOC port of parts of Kean.","fork":true,"url":"https://api.github.com/repos/emilwestergren/ooc-kean","forks_url":"https://api.github.com/repos/emilwestergren/ooc-kean/forks","keys_url":"https://api.github.com/repos/emilwestergren/ooc-kean/keys{/key_id}","collaborators_url":"https://api.github.com/repos/emilwestergren/ooc-kean/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/emilwestergren/ooc-kean/teams","hooks_url":"https://api.github.com/repos/emilwestergren/ooc-kean/hooks","issue_events_url":"https://api.github.com/repos/emilwestergren/ooc-kean/issues/events{/number}","events_url":"https://api.github.com/repos/emilwestergren/ooc-kean/events","assignees_url":"https://api.github.com/repos/emilwestergren/ooc-kean/assignees{/user}","branches_url":"https://api.github.com/repos/emilwestergren/ooc-kean/branches{/branch}","tags_url":"https://api.github.com/repos/emilwestergren/ooc-kean/tags","blobs_url":"https://api.github.com/repos/emilwestergren/ooc-kean/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/emilwestergren/ooc-kean/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/emilwestergren/ooc-kean/git/refs{/sha}","trees_url":"https://api.github.com/repos/emilwestergren/ooc-kean/git/trees{/sha}","statuses_url":"https://api.github.com/repos/emilwestergren/ooc-kean/statuses/{sha}","languages_url":"https://api.github.com/repos/emilwestergren/ooc-kean/languages","stargazers_url":"https://api.github.com/repos/emilwestergren/ooc-kean/stargazers","contributors_url":"https://api.github.com/repos/emilwestergren/ooc-kean/contributors","subscribers_url":"https://api.github.com/repos/emilwestergren/ooc-kean/subscribers","subscription_url":"https://api.github.com/repos/emilwestergren/ooc-kean/subscription","commits_url":"https://api.github.com/repos/emilwestergren/ooc-kean/commits{/sha}","git_commits_url":"https://api.github.com/repos/emilwestergren/ooc-kean/git/commits{/sha}","comments_url":"https://api.github.com/repos/emilwestergren/ooc-kean/comments{/number}","issue_comment_url":"https://api.github.com/repos/emilwestergren/ooc-kean/issues/comments{/number}","contents_url":"https://api.github.com/repos/emilwestergren/ooc-kean/contents/{+path}","compare_url":"https://api.github.com/repos/emilwestergren/ooc-kean/compare/{base}...{head}","merges_url":"https://api.github.com/repos/emilwestergren/ooc-kean/merges","archive_url":"https://api.github.com/repos/emilwestergren/ooc-kean/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/emilwestergren/ooc-kean/downloads","issues_url":"https://api.github.com/repos/emilwestergren/ooc-kean/issues{/number}","pulls_url":"https://api.github.com/repos/emilwestergren/ooc-kean/pulls{/number}","milestones_url":"https://api.github.com/repos/emilwestergren/ooc-kean/milestones{/number}","notifications_url":"https://api.github.com/repos/emilwestergren/ooc-kean/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/emilwestergren/ooc-kean/labels{/name}","releases_url":"https://api.github.com/repos/emilwestergren/ooc-kean/releases{/id}","deployments_url":"https://api.github.com/repos/emilwestergren/ooc-kean/deployments","created_at":"2014-10-21T13:51:19Z","updated_at":"2016-01-21T11:50:29Z","pushed_at":"2016-02-11T08:18:34Z","git_url":"git://github.com/emilwestergren/ooc-kean.git","ssh_url":"git@github.com:emilwestergren/ooc-kean.git","clone_url":"https://github.com/emilwestergren/ooc-kean.git","svn_url":"https://github.com/emilwestergren/ooc-kean","homepage":null,"size":30665,"stargazers_count":0,"watchers_count":0,"language":"ooc","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"magic-lang:master","ref":"master","sha":"0e4f93cca86bcaf8f158ea1c23d89381f2fc1835","user":{"login":"magic-lang","id":16756691,"avatar_url":"https://avatars.githubusercontent.com/u/16756691?v=3","gravatar_id":"","url":"https://api.github.com/users/magic-lang","html_url":"https://github.com/magic-lang","followers_url":"https://api.github.com/users/magic-lang/followers","following_url":"https://api.github.com/users/magic-lang/following{/other_user}","gists_url":"https://api.github.com/users/magic-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/magic-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magic-lang/subscriptions","organizations_url":"https://api.github.com/users/magic-lang/orgs","repos_url":"https://api.github.com/users/magic-lang/repos","events_url":"https://api.github.com/users/magic-lang/events{/privacy}","received_events_url":"https://api.github.com/users/magic-lang/received_events","type":"Organization","site_admin":false},"repo":{"id":25256330,"name":"ooc-kean","full_name":"magic-lang/ooc-kean","owner":{"login":"magic-lang","id":16756691,"avatar_url":"https://avatars.githubusercontent.com/u/16756691?v=3","gravatar_id":"","url":"https://api.github.com/users/magic-lang","html_url":"https://github.com/magic-lang","followers_url":"https://api.github.com/users/magic-lang/followers","following_url":"https://api.github.com/users/magic-lang/following{/other_user}","gists_url":"https://api.github.com/users/magic-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/magic-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magic-lang/subscriptions","organizations_url":"https://api.github.com/users/magic-lang/orgs","repos_url":"https://api.github.com/users/magic-lang/repos","events_url":"https://api.github.com/users/magic-lang/events{/privacy}","received_events_url":"https://api.github.com/users/magic-lang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/magic-lang/ooc-kean","description":"ooc port of parts of Kean.","fork":false,"url":"https://api.github.com/repos/magic-lang/ooc-kean","forks_url":"https://api.github.com/repos/magic-lang/ooc-kean/forks","keys_url":"https://api.github.com/repos/magic-lang/ooc-kean/keys{/key_id}","collaborators_url":"https://api.github.com/repos/magic-lang/ooc-kean/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/magic-lang/ooc-kean/teams","hooks_url":"https://api.github.com/repos/magic-lang/ooc-kean/hooks","issue_events_url":"https://api.github.com/repos/magic-lang/ooc-kean/issues/events{/number}","events_url":"https://api.github.com/repos/magic-lang/ooc-kean/events","assignees_url":"https://api.github.com/repos/magic-lang/ooc-kean/assignees{/user}","branches_url":"https://api.github.com/repos/magic-lang/ooc-kean/branches{/branch}","tags_url":"https://api.github.com/repos/magic-lang/ooc-kean/tags","blobs_url":"https://api.github.com/repos/magic-lang/ooc-kean/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/magic-lang/ooc-kean/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/magic-lang/ooc-kean/git/refs{/sha}","trees_url":"https://api.github.com/repos/magic-lang/ooc-kean/git/trees{/sha}","statuses_url":"https://api.github.com/repos/magic-lang/ooc-kean/statuses/{sha}","languages_url":"https://api.github.com/repos/magic-lang/ooc-kean/languages","stargazers_url":"https://api.github.com/repos/magic-lang/ooc-kean/stargazers","contributors_url":"https://api.github.com/repos/magic-lang/ooc-kean/contributors","subscribers_url":"https://api.github.com/repos/magic-lang/ooc-kean/subscribers","subscription_url":"https://api.github.com/repos/magic-lang/ooc-kean/subscription","commits_url":"https://api.github.com/repos/magic-lang/ooc-kean/commits{/sha}","git_commits_url":"https://api.github.com/repos/magic-lang/ooc-kean/git/commits{/sha}","comments_url":"https://api.github.com/repos/magic-lang/ooc-kean/comments{/number}","issue_comment_url":"https://api.github.com/repos/magic-lang/ooc-kean/issues/comments{/number}","contents_url":"https://api.github.com/repos/magic-lang/ooc-kean/contents/{+path}","compare_url":"https://api.github.com/repos/magic-lang/ooc-kean/compare/{base}...{head}","merges_url":"https://api.github.com/repos/magic-lang/ooc-kean/merges","archive_url":"https://api.github.com/repos/magic-lang/ooc-kean/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/magic-lang/ooc-kean/downloads","issues_url":"https://api.github.com/repos/magic-lang/ooc-kean/issues{/number}","pulls_url":"https://api.github.com/repos/magic-lang/ooc-kean/pulls{/number}","milestones_url":"https://api.github.com/repos/magic-lang/ooc-kean/milestones{/number}","notifications_url":"https://api.github.com/repos/magic-lang/ooc-kean/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/magic-lang/ooc-kean/labels{/name}","releases_url":"https://api.github.com/repos/magic-lang/ooc-kean/releases{/id}","deployments_url":"https://api.github.com/repos/magic-lang/ooc-kean/deployments","created_at":"2014-10-15T13:42:17Z","updated_at":"2016-01-21T11:50:29Z","pushed_at":"2016-02-11T08:22:05Z","git_url":"git://github.com/magic-lang/ooc-kean.git","ssh_url":"git@github.com:magic-lang/ooc-kean.git","clone_url":"https://github.com/magic-lang/ooc-kean.git","svn_url":"https://github.com/magic-lang/ooc-kean","homepage":"","size":31046,"stargazers_count":3,"watchers_count":3,"language":"ooc","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":43,"forks":18,"open_issues":43,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/magic-lang/ooc-kean/pulls/1376"},"html":{"href":"https://github.com/magic-lang/ooc-kean/pull/1376"},"issue":{"href":"https://api.github.com/repos/magic-lang/ooc-kean/issues/1376"},"comments":{"href":"https://api.github.com/repos/magic-lang/ooc-kean/issues/1376/comments"},"review_comments":{"href":"https://api.github.com/repos/magic-lang/ooc-kean/pulls/1376/comments"},"review_comment":{"href":"https://api.github.com/repos/magic-lang/ooc-kean/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/magic-lang/ooc-kean/pulls/1376/commits"},"statuses":{"href":"https://api.github.com/repos/magic-lang/ooc-kean/statuses/4834123ab71fbcc826d43a7a0c298c7565d93c15"}}}}