[{"data":1,"prerenderedAt":294},["ShallowReactive",2],{"content-query-fO28lvrrFI":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":7,"icon":9,"body":10,"_type":288,"_id":289,"_source":290,"_file":291,"_stem":292,"_extension":293},"/dragonfly/main/scheduler","main",false,"","ArmaDragonflyClient - Scheduler","mdi:file-text-outline",{"type":11,"children":12,"toc":274},"root",[13,22,29,35,41,54,60,124,130,135,141,148,157,163,172,178,224,230],{"type":14,"tag":15,"props":16,"children":18},"element","h1",{"id":17},"scheduler",[19],{"type":20,"value":21},"text","Scheduler",{"type":14,"tag":23,"props":24,"children":26},"h2",{"id":25},"description",[27],{"type":20,"value":28},"Description",{"type":14,"tag":30,"props":31,"children":32},"p",{},[33],{"type":20,"value":34},"Manages the callback system for the ArmaDragonflyClient extension. This function receives task IDs from the extension's asynchronous callbacks, parses them, and registers them in a hashmap for later processing. It acts as the bridge between the extension's asynchronous operations and the game's execution environment.",{"type":14,"tag":23,"props":36,"children":38},{"id":37},"syntax",[39],{"type":20,"value":40},"Syntax",{"type":14,"tag":42,"props":43,"children":48},"pre",{"className":44,"code":46,"language":47,"meta":7},[45],"language-sqf","[_taskID] call dragonfly_db_fnc_scheduler\n","sqf",[49],{"type":14,"tag":50,"props":51,"children":52},"code",{"__ignoreMap":7},[53],{"type":20,"value":46},{"type":14,"tag":23,"props":55,"children":57},{"id":56},"parameters",[58],{"type":20,"value":59},"Parameters",{"type":14,"tag":61,"props":62,"children":63},"table",{},[64,92],{"type":14,"tag":65,"props":66,"children":67},"thead",{},[68],{"type":14,"tag":69,"props":70,"children":71},"tr",{},[72,78,83,87],{"type":14,"tag":73,"props":74,"children":75},"th",{},[76],{"type":20,"value":77},"Parameter",{"type":14,"tag":73,"props":79,"children":80},{},[81],{"type":20,"value":82},"Type",{"type":14,"tag":73,"props":84,"children":85},{},[86],{"type":20,"value":28},{"type":14,"tag":73,"props":88,"children":89},{},[90],{"type":20,"value":91},"Default",{"type":14,"tag":93,"props":94,"children":95},"tbody",{},[96],{"type":14,"tag":69,"props":97,"children":98},{},[99,109,114,119],{"type":14,"tag":100,"props":101,"children":102},"td",{},[103],{"type":14,"tag":50,"props":104,"children":106},{"className":105},[],[107],{"type":20,"value":108},"_taskID",{"type":14,"tag":100,"props":110,"children":111},{},[112],{"type":20,"value":113},"String",{"type":14,"tag":100,"props":115,"children":116},{},[117],{"type":20,"value":118},"Task identifier returned from extension callback",{"type":14,"tag":100,"props":120,"children":121},{},[122],{"type":20,"value":123},"\"\"",{"type":14,"tag":23,"props":125,"children":127},{"id":126},"return-value",[128],{"type":20,"value":129},"Return Value",{"type":14,"tag":30,"props":131,"children":132},{},[133],{"type":20,"value":134},"None. The function registers the task ID in a hashmap for later processing.",{"type":14,"tag":23,"props":136,"children":138},{"id":137},"examples",[139],{"type":20,"value":140},"Examples",{"type":14,"tag":142,"props":143,"children":145},"h3",{"id":144},"process-a-callback-from-the-extension",[146],{"type":20,"value":147},"Process a callback from the extension:",{"type":14,"tag":42,"props":149,"children":152},{"className":150,"code":151,"language":47,"meta":7},[45],"[\"1689524160123_get\"] call dragonfly_db_fnc_scheduler;\n",[153],{"type":14,"tag":50,"props":154,"children":155},{"__ignoreMap":7},[156],{"type":20,"value":151},{"type":14,"tag":142,"props":158,"children":160},{"id":159},"forward-a-callback-to-the-server",[161],{"type":20,"value":162},"Forward a callback to the server:",{"type":14,"tag":42,"props":164,"children":167},{"className":165,"code":166,"language":47,"meta":7},[45],"[\"1689524160123_hgetall\"] remoteExecCall [\"dragonfly_db_fnc_scheduler\", 2, false];\n",[168],{"type":14,"tag":50,"props":169,"children":170},{"__ignoreMap":7},[171],{"type":20,"value":166},{"type":14,"tag":23,"props":173,"children":175},{"id":174},"notes",[176],{"type":20,"value":177},"Notes",{"type":14,"tag":179,"props":180,"children":181},"ul",{},[182,188,193,198,209,214,219],{"type":14,"tag":183,"props":184,"children":185},"li",{},[186],{"type":20,"value":187},"Parses the task ID to extract the timestamp and operation type",{"type":14,"tag":183,"props":189,"children":190},{},[191],{"type":20,"value":192},"Registers the task in a type-specific hashmap using the mission namespace",{"type":14,"tag":183,"props":194,"children":195},{},[196],{"type":20,"value":197},"Each operation type (get, hgetall, etc.) has its own hashmap for tracking",{"type":14,"tag":183,"props":199,"children":200},{},[201,203],{"type":20,"value":202},"The format of task IDs is typically: ",{"type":14,"tag":50,"props":204,"children":206},{"className":205},[],[207],{"type":20,"value":208},"[timestamp]_[operation]",{"type":14,"tag":183,"props":210,"children":211},{},[212],{"type":20,"value":213},"This function is automatically called by the extension callback mechanism",{"type":14,"tag":183,"props":215,"children":216},{},[217],{"type":20,"value":218},"Creates hashmaps on demand if they don't already exist",{"type":14,"tag":183,"props":220,"children":221},{},[222],{"type":20,"value":223},"Critical for handling asynchronous database operations",{"type":14,"tag":23,"props":225,"children":227},{"id":226},"links",[228],{"type":20,"value":229},"Links",{"type":14,"tag":30,"props":231,"children":232},{},[233,240,242,248,249,255,256,262,263,267,268],{"type":14,"tag":234,"props":235,"children":237},"a",{"href":236},"/dragonfly/main/addtask",[238],{"type":20,"value":239},"Add Task",{"type":20,"value":241}," |\n",{"type":14,"tag":234,"props":243,"children":245},{"href":244},"/dragonfly/main/handler",[246],{"type":20,"value":247},"Handler",{"type":20,"value":241},{"type":14,"tag":234,"props":250,"children":252},{"href":251},"/dragonfly/main/init",[253],{"type":20,"value":254},"Init",{"type":20,"value":241},{"type":14,"tag":234,"props":257,"children":259},{"href":258},"/dragonfly/main/processqueue",[260],{"type":20,"value":261},"Process Queue",{"type":20,"value":241},{"type":14,"tag":234,"props":264,"children":265},{"href":4},[266],{"type":20,"value":21},{"type":20,"value":241},{"type":14,"tag":234,"props":269,"children":271},{"href":270},"/dragonfly/main/setup",[272],{"type":20,"value":273},"Setup",{"title":7,"searchDepth":275,"depth":275,"links":276},2,[277,278,279,280,281,286,287],{"id":25,"depth":275,"text":28},{"id":37,"depth":275,"text":40},{"id":56,"depth":275,"text":59},{"id":126,"depth":275,"text":129},{"id":137,"depth":275,"text":140,"children":282},[283,285],{"id":144,"depth":284,"text":147},3,{"id":159,"depth":284,"text":162},{"id":174,"depth":275,"text":177},{"id":226,"depth":275,"text":229},"markdown","content:dragonfly:main:scheduler.md","content","dragonfly/main/scheduler.md","dragonfly/main/scheduler","md",1742777962763]