{"action":"created","issue":{"url":"https://api.github.com/repos/coteditor/CotEditor/issues/658","repository_url":"https://api.github.com/repos/coteditor/CotEditor","labels_url":"https://api.github.com/repos/coteditor/CotEditor/issues/658/labels{/name}","comments_url":"https://api.github.com/repos/coteditor/CotEditor/issues/658/comments","events_url":"https://api.github.com/repos/coteditor/CotEditor/issues/658/events","html_url":"https://github.com/coteditor/CotEditor/pull/658","id":194813282,"number":658,"title":"Restrict the refresh rate of the script menu","user":{"login":"umireon","id":1067855,"avatar_url":"https://avatars.githubusercontent.com/u/1067855?v=3","gravatar_id":"","url":"https://api.github.com/users/umireon","html_url":"https://github.com/umireon","followers_url":"https://api.github.com/users/umireon/followers","following_url":"https://api.github.com/users/umireon/following{/other_user}","gists_url":"https://api.github.com/users/umireon/gists{/gist_id}","starred_url":"https://api.github.com/users/umireon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/umireon/subscriptions","organizations_url":"https://api.github.com/users/umireon/orgs","repos_url":"https://api.github.com/users/umireon/repos","events_url":"https://api.github.com/users/umireon/events{/privacy}","received_events_url":"https://api.github.com/users/umireon/received_events","type":"User","site_admin":false},"labels":[{"id":34724910,"url":"https://api.github.com/repos/coteditor/CotEditor/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":{"login":"1024jp","id":1165044,"avatar_url":"https://avatars.githubusercontent.com/u/1165044?v=3","gravatar_id":"","url":"https://api.github.com/users/1024jp","html_url":"https://github.com/1024jp","followers_url":"https://api.github.com/users/1024jp/followers","following_url":"https://api.github.com/users/1024jp/following{/other_user}","gists_url":"https://api.github.com/users/1024jp/gists{/gist_id}","starred_url":"https://api.github.com/users/1024jp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1024jp/subscriptions","organizations_url":"https://api.github.com/users/1024jp/orgs","repos_url":"https://api.github.com/users/1024jp/repos","events_url":"https://api.github.com/users/1024jp/events{/privacy}","received_events_url":"https://api.github.com/users/1024jp/received_events","type":"User","site_admin":false},"assignees":[{"login":"1024jp","id":1165044,"avatar_url":"https://avatars.githubusercontent.com/u/1165044?v=3","gravatar_id":"","url":"https://api.github.com/users/1024jp","html_url":"https://github.com/1024jp","followers_url":"https://api.github.com/users/1024jp/followers","following_url":"https://api.github.com/users/1024jp/following{/other_user}","gists_url":"https://api.github.com/users/1024jp/gists{/gist_id}","starred_url":"https://api.github.com/users/1024jp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1024jp/subscriptions","organizations_url":"https://api.github.com/users/1024jp/orgs","repos_url":"https://api.github.com/users/1024jp/repos","events_url":"https://api.github.com/users/1024jp/events{/privacy}","received_events_url":"https://api.github.com/users/1024jp/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/coteditor/CotEditor/milestones/50","html_url":"https://github.com/coteditor/CotEditor/milestone/50","labels_url":"https://api.github.com/repos/coteditor/CotEditor/milestones/50/labels","id":2172991,"number":50,"title":"3.1.3","description":"","creator":{"login":"1024jp","id":1165044,"avatar_url":"https://avatars.githubusercontent.com/u/1165044?v=3","gravatar_id":"","url":"https://api.github.com/users/1024jp","html_url":"https://github.com/1024jp","followers_url":"https://api.github.com/users/1024jp/followers","following_url":"https://api.github.com/users/1024jp/following{/other_user}","gists_url":"https://api.github.com/users/1024jp/gists{/gist_id}","starred_url":"https://api.github.com/users/1024jp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1024jp/subscriptions","organizations_url":"https://api.github.com/users/1024jp/orgs","repos_url":"https://api.github.com/users/1024jp/repos","events_url":"https://api.github.com/users/1024jp/events{/privacy}","received_events_url":"https://api.github.com/users/1024jp/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":2,"state":"open","created_at":"2016-12-03T12:06:22Z","updated_at":"2016-12-11T06:57:12Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2016-12-11T05:03:01Z","updated_at":"2016-12-11T09:00:37Z","closed_at":"2016-12-11T06:56:56Z","pull_request":{"url":"https://api.github.com/repos/coteditor/CotEditor/pulls/658","html_url":"https://github.com/coteditor/CotEditor/pull/658","diff_url":"https://github.com/coteditor/CotEditor/pull/658.diff","patch_url":"https://github.com/coteditor/CotEditor/pull/658.patch"},"body":"`buildScriptMenu()` is called too many times when many files under the application scripts directory are renewed simultaneously.\r\n\r\nThis change keep the invocation rate of `buildScriptMenu()` moderate."},"comment":{"url":"https://api.github.com/repos/coteditor/CotEditor/issues/comments/266270948","html_url":"https://github.com/coteditor/CotEditor/pull/658#issuecomment-266270948","issue_url":"https://api.github.com/repos/coteditor/CotEditor/issues/658","id":266270948,"user":{"login":"1024jp","id":1165044,"avatar_url":"https://avatars.githubusercontent.com/u/1165044?v=3","gravatar_id":"","url":"https://api.github.com/users/1024jp","html_url":"https://github.com/1024jp","followers_url":"https://api.github.com/users/1024jp/followers","following_url":"https://api.github.com/users/1024jp/following{/other_user}","gists_url":"https://api.github.com/users/1024jp/gists{/gist_id}","starred_url":"https://api.github.com/users/1024jp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1024jp/subscriptions","organizations_url":"https://api.github.com/users/1024jp/orgs","repos_url":"https://api.github.com/users/1024jp/repos","events_url":"https://api.github.com/users/1024jp/events{/privacy}","received_events_url":"https://api.github.com/users/1024jp/received_events","type":"User","site_admin":false},"created_at":"2016-12-11T09:00:37Z","updated_at":"2016-12-11T09:00:37Z","body":">> However, if I understand correctly, it seems DispatchWorkItem's cancel() doesn't cancel its task. It is more like just a flag 1).\r\n> \r\n> No, `cancel()` can cancel a task in a queue which is __not yet executed__.\r\n> The question on SO is about stopping a task which is __executing__.\r\n\r\nYes, yes, that's right. Sorry for the first comment."}}
{"actor":{"display_login":"1024jp"}}