{"json_modified": "2016-03-28T08:08:54.643576", "uuid": "6d50fe7f-821a-45f5-aa55-915160f6db6d", "title": "Delayed Execution", "url": "/en-US/docs/Mozilla/Add-ons/Code_snippets/Threads", "tags": ["Code snippets"], "translations": [], "modified": "2015-09-14T12:06:44", "label": "Delayed Execution", "localization_tags": [], "locale": "en-US", "id": 9285, "last_edit": "2015-09-14T12:06:41", "summary": "When a task needs to be only briefly delayed, such that it runs after the current call chain returns, it can be added directly to the main thread's event queue rather than scheduled as a timeout:", "sections": [{"id": "Queuing_a_task_in_the_main_event_loop", "title": "Queuing a task in the main event loop"}, {"id": "Using_nsITimers_to_schedule_tasks", "title": "Using "}], "slug": "Mozilla/Add-ons/Code_snippets/Threads", "review_tags": []}