{"json_modified": "2016-03-28T08:25:02.402727", "uuid": "4f6901f5-cd5e-463c-bd9e-bcf79588a8f9", "title": "Javascript Daemons Management", "url": "/en-US/docs/Mozilla/Add-ons/Code_snippets/Timers/Daemons", "tags": ["JavaScript timers", "DOM", "MakeBrowserAgnostic", "Guide", "JavaScript"], "translations": [], "modified": "2016-02-04T06:54:12", "label": "Javascript Daemons Management", "localization_tags": [], "locale": "en-US", "id": 60095, "last_edit": "2014-10-26T06:13:38", "summary": "In computer science a daemon is a task that runs as a background process, rather than being under the direct control of an interactive user. In the JavaScript programming language, daemons are all processes created by JavaScript timers or by a Worker
instantiation. Here are some code snippets that simplify and abstract the management of daemons.", "sections": [{"id": "Introduction", "title": "Introduction"}, {"id": "The_code", "title": "The code"}, {"id": "About_the_\u201ccallback_arguments\u201d_polyfill", "title": "About the "}, {"id": "daemon.js", "title": "daemon.js"}, {"id": "daemon-safe.js", "title": "daemon-safe.js"}, {"id": "daemon-methods.js", "title": "daemon-methods.js"}, {"id": "Manual", "title": "Manual"}, {"id": "The_constructor", "title": "The constructor"}, {"id": "Syntax", "title": "Syntax"}, {"id": "Description", "title": "Description"}, {"id": "Arguments", "title": "Arguments"}, {"id": "Daemon_global_object_properties", "title": "Daemon global object properties"}, {"id": "Daemon_global_object_methods", "title": "Daemon global object methods"}, {"id": "Sample_usage", "title": "Sample usage:"}, {"id": "Other_constructors", "title": "Other constructors"}, {"id": "Syntax_2", "title": "Syntax"}, {"id": "Description_2", "title": "Description"}, {"id": "Daemon_instances_properties", "title": "Daemon instances properties"}, {"id": "Daemon_instances_methods", "title": "Daemon instances methods"}, {"id": "Additional_instances_methods_optional_module_daemon-methods.js", "title": "Additional instances methods [optional module daemon-methods.js]"}, {"id": "Examples", "title": "Examples"}, {"id": "Example_1_A_standard_instantiation_\u2013_new_Daemon()", "title": "Example #1: A standard instantiation \u2013 "}, {"id": "Example_2_A_practical_instantiation_\u2013_Daemon.buildAround()", "title": "Example #2: A practical instantiation \u2013 "}, {"id": "Example_3_A_safe_(without_setInterval)_instantiation_\u2013_new_Daemon.safe()", "title": "Example #3: A "}, {"id": "Example_4_A_practical_and_safe_(without_setInterval)_instantiation_\u2013_Daemon.safe.buildAround()", "title": "Example #4: A practical and "}, {"id": "See_also", "title": "See also"}], "slug": "Mozilla/Add-ons/Code_snippets/Timers/Daemons", "review_tags": ["technical"]}