{"name":"BIS_fnc_priorityQueue_PopItem","title":"BIS fnc priorityQueue PopItem","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_priorityQueue_PopItem","revid":274273,"updated":"2021-06-13T01:19:49Z","groups":["Priority Queue"],"status":"ok","games":{"arma3":"1.86"},"since":"arma3 1.86","arma3_since":"1.86","description":"/*\n\nPops the item with the highest priority from the Queue (item with highest index). The item is removed from the Queue. Complexity: O(1)","syntaxes":[{"syntax":"[] call BIS_fnc_priorityQueue_PopItem","params":[{"name":"_handle","type":"Number","type_expr":"Number","description":"Queue handle (get it with BIS_fnc_PriorityQueue_Init)\n_keep:BOOL - if true, the item is not removed from the Queue","text":"INT - Queue handle (get it with BIS_fnc_PriorityQueue_Init)\n_keep:BOOL - if true, the item is not removed from the Queue","source":"docblock"}],"returns":{"type":"Anything","type_expr":"Anything","description":"the item stored in the Queue","text":"_item:ANY - the item stored in the Queue","source":"docblock"}}],"examples":[{"code":["_myItem = [_priorityQueue_1] call BIS_fnc_PriorityQueue_PopItem;"]}],"docblock":{"text":"/*\n    Author: Zozo\n\n    Description:\n    Pops the item with the highest priority from the Queue (item with highest index).\n    The item is removed from the Queue.\n    Complexity: O(1)\n\n    Parameters:\n    _handle:INT - Queue handle (get it with BIS_fnc_PriorityQueue_Init)\n    _keep:BOOL - if true, the item is not removed from the Queue\n\n    Returns:\n    _item:ANY - the item stored in the Queue\n\n    Syntax:\n    _item:ANY = [_handle] call BIS_fnc_PriorityQueue_PopItem;\n\n    Example:\n    _myItem = [_priorityQueue_1] call BIS_fnc_PriorityQueue_PopItem;","author":"Zozo"},"filled_from_docblock":["description","params","returns","examples"]}