{"action":"created","comment":{"url":"https://api.github.com/repos/gyoho/task-scheduler/pulls/comments/123150358","pull_request_review_id":45324318,"id":123150358,"diff_hunk":"@@ -0,0 +1,38 @@\n+import java.util.concurrent.PriorityBlockingQueue\n+\n+import scala.concurrent.{ExecutionContext, Future}\n+\n+class SchedulerImp(\n+    val minHeap: PriorityBlockingQueue[ScheduledTask]\n+) extends Scheduler {\n+\n+  @volatile var running = false","path":"src/main/scala/SchedulerImp.scala","position":9,"original_position":9,"commit_id":"ea103d7a971147bb1bea37559f41db4f840f5bae","original_commit_id":"ea103d7a971147bb1bea37559f41db4f840f5bae","user":{"login":"gyoho","id":5827429,"avatar_url":"https://avatars0.githubusercontent.com/u/5827429?v=3","gravatar_id":"","url":"https://api.github.com/users/gyoho","html_url":"https://github.com/gyoho","followers_url":"https://api.github.com/users/gyoho/followers","following_url":"https://api.github.com/users/gyoho/following{/other_user}","gists_url":"https://api.github.com/users/gyoho/gists{/gist_id}","starred_url":"https://api.github.com/users/gyoho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gyoho/subscriptions","organizations_url":"https://api.github.com/users/gyoho/orgs","repos_url":"https://api.github.com/users/gyoho/repos","events_url":"https://api.github.com/users/gyoho/events{/privacy}","received_events_url":"https://api.github.com/users/gyoho/received_events","type":"User","site_admin":false},"body":"defined a lock for stopping this scheduler","created_at":"2017-06-21T04:11:38Z","updated_at":"2017-06-21T04:11:38Z","html_url":"https://github.com/gyoho/task-scheduler/pull/4#discussion_r123150358","pull_request_url":"https://api.github.com/repos/gyoho/task-scheduler/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/gyoho/task-scheduler/pulls/comments/123150358"},"html":{"href":"https://github.com/gyoho/task-scheduler/pull/4#discussion_r123150358"},"pull_request":{"href":"https://api.github.com/repos/gyoho/task-scheduler/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/gyoho/task-scheduler/pulls/4","id":126662786,"html_url":"https://github.com/gyoho/task-scheduler/pull/4","diff_url":"https://github.com/gyoho/task-scheduler/pull/4.diff","patch_url":"https://github.com/gyoho/task-scheduler/pull/4.patch","issue_url":"https://api.github.com/repos/gyoho/task-scheduler/issues/4","number":4,"state":"open","locked":false,"title":"ScalaTest + Future/Promise + Wait/Notify","user":{"login":"gyoho","id":5827429,"avatar_url":"https://avatars0.githubusercontent.com/u/5827429?v=3","gravatar_id":"","url":"https://api.github.com/users/gyoho","html_url":"https://github.com/gyoho","followers_url":"https://api.github.com/users/gyoho/followers","following_url":"https://api.github.com/users/gyoho/following{/other_user}","gists_url":"https://api.github.com/users/gyoho/gists{/gist_id}","starred_url":"https://api.github.com/users/gyoho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gyoho/subscriptions","organizations_url":"https://api.github.com/users/gyoho/orgs","repos_url":"https://api.github.com/users/gyoho/repos","events_url":"https://api.github.com/users/gyoho/events{/privacy}","received_events_url":"https://api.github.com/users/gyoho/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-06-21T01:31:44Z","updated_at":"2017-06-21T04:11:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cbea60393d6726f33ccbbc0cf7b4b2269213a4fc","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/gyoho/task-scheduler/pulls/4/commits","review_comments_url":"https://api.github.com/repos/gyoho/task-scheduler/pulls/4/comments","review_comment_url":"https://api.github.com/repos/gyoho/task-scheduler/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gyoho/task-scheduler/issues/4/comments","statuses_url":"https://api.github.com/repos/gyoho/task-scheduler/statuses/ea103d7a971147bb1bea37559f41db4f840f5bae","head":{"label":"gyoho:release","ref":"release","sha":"ea103d7a971147bb1bea37559f41db4f840f5bae","user":{"login":"gyoho","id":5827429,"avatar_url":"https://avatars0.githubusercontent.com/u/5827429?v=3","gravatar_id":"","url":"https://api.github.com/users/gyoho","html_url":"https://github.com/gyoho","followers_url":"https://api.github.com/users/gyoho/followers","following_url":"https://api.github.com/users/gyoho/following{/other_user}","gists_url":"https://api.github.com/users/gyoho/gists{/gist_id}","starred_url":"https://api.github.com/users/gyoho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gyoho/subscriptions","organizations_url":"https://api.github.com/users/gyoho/orgs","repos_url":"https://api.github.com/users/gyoho/repos","events_url":"https://api.github.com/users/gyoho/events{/privacy}","received_events_url":"https://api.github.com/users/gyoho/received_events","type":"User","site_admin":false},"repo":{"id":94663490,"name":"task-scheduler","full_name":"gyoho/task-scheduler","owner":{"login":"gyoho","id":5827429,"avatar_url":"https://avatars0.githubusercontent.com/u/5827429?v=3","gravatar_id":"","url":"https://api.github.com/users/gyoho","html_url":"https://github.com/gyoho","followers_url":"https://api.github.com/users/gyoho/followers","following_url":"https://api.github.com/users/gyoho/following{/other_user}","gists_url":"https://api.github.com/users/gyoho/gists{/gist_id}","starred_url":"https://api.github.com/users/gyoho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gyoho/subscriptions","organizations_url":"https://api.github.com/users/gyoho/orgs","repos_url":"https://api.github.com/users/gyoho/repos","events_url":"https://api.github.com/users/gyoho/events{/privacy}","received_events_url":"https://api.github.com/users/gyoho/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gyoho/task-scheduler","description":"Scala Implementation of Multi-Threaded Task Scheduler","fork":false,"url":"https://api.github.com/repos/gyoho/task-scheduler","forks_url":"https://api.github.com/repos/gyoho/task-scheduler/forks","keys_url":"https://api.github.com/repos/gyoho/task-scheduler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gyoho/task-scheduler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gyoho/task-scheduler/teams","hooks_url":"https://api.github.com/repos/gyoho/task-scheduler/hooks","issue_events_url":"https://api.github.com/repos/gyoho/task-scheduler/issues/events{/number}","events_url":"https://api.github.com/repos/gyoho/task-scheduler/events","assignees_url":"https://api.github.com/repos/gyoho/task-scheduler/assignees{/user}","branches_url":"https://api.github.com/repos/gyoho/task-scheduler/branches{/branch}","tags_url":"https://api.github.com/repos/gyoho/task-scheduler/tags","blobs_url":"https://api.github.com/repos/gyoho/task-scheduler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gyoho/task-scheduler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gyoho/task-scheduler/git/refs{/sha}","trees_url":"https://api.github.com/repos/gyoho/task-scheduler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gyoho/task-scheduler/statuses/{sha}","languages_url":"https://api.github.com/repos/gyoho/task-scheduler/languages","stargazers_url":"https://api.github.com/repos/gyoho/task-scheduler/stargazers","contributors_url":"https://api.github.com/repos/gyoho/task-scheduler/contributors","subscribers_url":"https://api.github.com/repos/gyoho/task-scheduler/subscribers","subscription_url":"https://api.github.com/repos/gyoho/task-scheduler/subscription","commits_url":"https://api.github.com/repos/gyoho/task-scheduler/commits{/sha}","git_commits_url":"https://api.github.com/repos/gyoho/task-scheduler/git/commits{/sha}","comments_url":"https://api.github.com/repos/gyoho/task-scheduler/comments{/number}","issue_comment_url":"https://api.github.com/repos/gyoho/task-scheduler/issues/comments{/number}","contents_url":"https://api.github.com/repos/gyoho/task-scheduler/contents/{+path}","compare_url":"https://api.github.com/repos/gyoho/task-scheduler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gyoho/task-scheduler/merges","archive_url":"https://api.github.com/repos/gyoho/task-scheduler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gyoho/task-scheduler/downloads","issues_url":"https://api.github.com/repos/gyoho/task-scheduler/issues{/number}","pulls_url":"https://api.github.com/repos/gyoho/task-scheduler/pulls{/number}","milestones_url":"https://api.github.com/repos/gyoho/task-scheduler/milestones{/number}","notifications_url":"https://api.github.com/repos/gyoho/task-scheduler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gyoho/task-scheduler/labels{/name}","releases_url":"https://api.github.com/repos/gyoho/task-scheduler/releases{/id}","deployments_url":"https://api.github.com/repos/gyoho/task-scheduler/deployments","created_at":"2017-06-18T03:49:52Z","updated_at":"2017-06-18T03:58:02Z","pushed_at":"2017-06-21T04:02:40Z","git_url":"git://github.com/gyoho/task-scheduler.git","ssh_url":"git@github.com:gyoho/task-scheduler.git","clone_url":"https://github.com/gyoho/task-scheduler.git","svn_url":"https://github.com/gyoho/task-scheduler","homepage":null,"size":33,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"gyoho:master","ref":"master","sha":"96a1ea20db7375542785c4cdf18b195ce21cf204","user":{"login":"gyoho","id":5827429,"avatar_url":"https://avatars0.githubusercontent.com/u/5827429?v=3","gravatar_id":"","url":"https://api.github.com/users/gyoho","html_url":"https://github.com/gyoho","followers_url":"https://api.github.com/users/gyoho/followers","following_url":"https://api.github.com/users/gyoho/following{/other_user}","gists_url":"https://api.github.com/users/gyoho/gists{/gist_id}","starred_url":"https://api.github.com/users/gyoho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gyoho/subscriptions","organizations_url":"https://api.github.com/users/gyoho/orgs","repos_url":"https://api.github.com/users/gyoho/repos","events_url":"https://api.github.com/users/gyoho/events{/privacy}","received_events_url":"https://api.github.com/users/gyoho/received_events","type":"User","site_admin":false},"repo":{"id":94663490,"name":"task-scheduler","full_name":"gyoho/task-scheduler","owner":{"login":"gyoho","id":5827429,"avatar_url":"https://avatars0.githubusercontent.com/u/5827429?v=3","gravatar_id":"","url":"https://api.github.com/users/gyoho","html_url":"https://github.com/gyoho","followers_url":"https://api.github.com/users/gyoho/followers","following_url":"https://api.github.com/users/gyoho/following{/other_user}","gists_url":"https://api.github.com/users/gyoho/gists{/gist_id}","starred_url":"https://api.github.com/users/gyoho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gyoho/subscriptions","organizations_url":"https://api.github.com/users/gyoho/orgs","repos_url":"https://api.github.com/users/gyoho/repos","events_url":"https://api.github.com/users/gyoho/events{/privacy}","received_events_url":"https://api.github.com/users/gyoho/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gyoho/task-scheduler","description":"Scala Implementation of Multi-Threaded Task Scheduler","fork":false,"url":"https://api.github.com/repos/gyoho/task-scheduler","forks_url":"https://api.github.com/repos/gyoho/task-scheduler/forks","keys_url":"https://api.github.com/repos/gyoho/task-scheduler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gyoho/task-scheduler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gyoho/task-scheduler/teams","hooks_url":"https://api.github.com/repos/gyoho/task-scheduler/hooks","issue_events_url":"https://api.github.com/repos/gyoho/task-scheduler/issues/events{/number}","events_url":"https://api.github.com/repos/gyoho/task-scheduler/events","assignees_url":"https://api.github.com/repos/gyoho/task-scheduler/assignees{/user}","branches_url":"https://api.github.com/repos/gyoho/task-scheduler/branches{/branch}","tags_url":"https://api.github.com/repos/gyoho/task-scheduler/tags","blobs_url":"https://api.github.com/repos/gyoho/task-scheduler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gyoho/task-scheduler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gyoho/task-scheduler/git/refs{/sha}","trees_url":"https://api.github.com/repos/gyoho/task-scheduler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gyoho/task-scheduler/statuses/{sha}","languages_url":"https://api.github.com/repos/gyoho/task-scheduler/languages","stargazers_url":"https://api.github.com/repos/gyoho/task-scheduler/stargazers","contributors_url":"https://api.github.com/repos/gyoho/task-scheduler/contributors","subscribers_url":"https://api.github.com/repos/gyoho/task-scheduler/subscribers","subscription_url":"https://api.github.com/repos/gyoho/task-scheduler/subscription","commits_url":"https://api.github.com/repos/gyoho/task-scheduler/commits{/sha}","git_commits_url":"https://api.github.com/repos/gyoho/task-scheduler/git/commits{/sha}","comments_url":"https://api.github.com/repos/gyoho/task-scheduler/comments{/number}","issue_comment_url":"https://api.github.com/repos/gyoho/task-scheduler/issues/comments{/number}","contents_url":"https://api.github.com/repos/gyoho/task-scheduler/contents/{+path}","compare_url":"https://api.github.com/repos/gyoho/task-scheduler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gyoho/task-scheduler/merges","archive_url":"https://api.github.com/repos/gyoho/task-scheduler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gyoho/task-scheduler/downloads","issues_url":"https://api.github.com/repos/gyoho/task-scheduler/issues{/number}","pulls_url":"https://api.github.com/repos/gyoho/task-scheduler/pulls{/number}","milestones_url":"https://api.github.com/repos/gyoho/task-scheduler/milestones{/number}","notifications_url":"https://api.github.com/repos/gyoho/task-scheduler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gyoho/task-scheduler/labels{/name}","releases_url":"https://api.github.com/repos/gyoho/task-scheduler/releases{/id}","deployments_url":"https://api.github.com/repos/gyoho/task-scheduler/deployments","created_at":"2017-06-18T03:49:52Z","updated_at":"2017-06-18T03:58:02Z","pushed_at":"2017-06-21T04:02:40Z","git_url":"git://github.com/gyoho/task-scheduler.git","ssh_url":"git@github.com:gyoho/task-scheduler.git","clone_url":"https://github.com/gyoho/task-scheduler.git","svn_url":"https://github.com/gyoho/task-scheduler","homepage":null,"size":33,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gyoho/task-scheduler/pulls/4"},"html":{"href":"https://github.com/gyoho/task-scheduler/pull/4"},"issue":{"href":"https://api.github.com/repos/gyoho/task-scheduler/issues/4"},"comments":{"href":"https://api.github.com/repos/gyoho/task-scheduler/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/gyoho/task-scheduler/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/gyoho/task-scheduler/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gyoho/task-scheduler/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/gyoho/task-scheduler/statuses/ea103d7a971147bb1bea37559f41db4f840f5bae"}}}}
{"actor":{"display_login":"gyoho"}}