{"action":"opened","issue":{"url":"https://api.github.com/repos/lisaco-ono/study_record/issues/21","repository_url":"https://api.github.com/repos/lisaco-ono/study_record","labels_url":"https://api.github.com/repos/lisaco-ono/study_record/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/lisaco-ono/study_record/issues/21/comments","events_url":"https://api.github.com/repos/lisaco-ono/study_record/issues/21/events","html_url":"https://github.com/lisaco-ono/study_record/issues/21","id":294331217,"number":21,"title":"Javascriptは非同期言語！","user":{"login":"lisaco-ono","id":27272652,"avatar_url":"https://avatars0.githubusercontent.com/u/27272652?v=4","gravatar_id":"","url":"https://api.github.com/users/lisaco-ono","html_url":"https://github.com/lisaco-ono","followers_url":"https://api.github.com/users/lisaco-ono/followers","following_url":"https://api.github.com/users/lisaco-ono/following{/other_user}","gists_url":"https://api.github.com/users/lisaco-ono/gists{/gist_id}","starred_url":"https://api.github.com/users/lisaco-ono/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lisaco-ono/subscriptions","organizations_url":"https://api.github.com/users/lisaco-ono/orgs","repos_url":"https://api.github.com/users/lisaco-ono/repos","events_url":"https://api.github.com/users/lisaco-ono/events{/privacy}","received_events_url":"https://api.github.com/users/lisaco-ono/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-05T09:51:23Z","updated_at":"2018-02-05T09:51:23Z","closed_at":null,"author_association":"OWNER","body":"### ぶちあたったこと\r\nMeteorのController.jsからそれぞれの関数を順番に呼び出したい．   \r\n（1個の関数実行が終わってから2個目の実行したい．）   \r\nでもただ関数を呼び出すだけだと，その順番では実行されない．\r\n\r\n\r\n### とりあえずの解決策\r\nsetTimeoutをつかう．\r\n```\r\nsetTimeout(function(){\r\n   よびだす関数;  \r\n}, 10000 );\r\n```\r\nこうやって書けば，10000ミリ秒（＝10秒）待ってから関数が呼び出される．   \r\n\r\n### 問題点\r\nめちゃくちゃコードが汚くなる．（待つ秒数のところが相対じゃなくて絶対というね）\r\n解決策を探す！！！！"}}
{"actor":{"display_login":"lisaco-ono"}}