var searchIndex = {}; searchIndex["task_queue"] = {"doc":"Task queue\nThe implementation of the thread pool for Rust\nLibrary supports dynamic control over the number of threads\nFor implement it you should use SpawnPolicy trait","items":[[3,"TaskQueue","task_queue","",null,null],[3,"Task","","",null,null],[0,"error","","",null,null],[4,"TaskQueueError","task_queue::error","",null,null],[13,"Io","","",0,null],[13,"Join","","",0,null],[11,"fmt","","",0,null],[11,"description","","",0,null],[11,"cause","","",0,null],[11,"fmt","","",0,null],[11,"from","","",0,{"inputs":[{"name":"error"}],"output":{"name":"taskqueueerror"}}],[0,"spawn_policy","task_queue","",null,null],[3,"StaticSpawnPolicy","task_queue::spawn_policy","",null,null],[8,"SpawnPolicy","","",null,null],[10,"get_count","","",1,null],[11,"new","","",2,{"inputs":[],"output":{"name":"staticspawnpolicy"}}],[11,"get_count","","",2,null],[11,"new","task_queue","Create new task queue with 10 threads",3,{"inputs":[],"output":{"name":"taskqueue"}}],[11,"with_threads","","Create new task quque with selected threads count",3,{"inputs":[{"name":"usize"},{"name":"usize"}],"output":{"name":"taskqueue"}}],[11,"enqueue","","Schedule task in queue",3,null],[11,"stop","","Stops tasks queue work and return are not completed tasks",3,null],[11,"get_threads_count","","returns threads count",3,null],[11,"get_max_threads","","return max threads count",3,null],[11,"get_min_threads","","return min threads count",3,null],[11,"set_spawn_policy","","sets a policy for controlling the amount of threads",3,null],[11,"run","","",4,null]],"paths":[[4,"TaskQueueError"],[8,"SpawnPolicy"],[3,"StaticSpawnPolicy"],[3,"TaskQueue"],[3,"Task"]]}; initSearch(searchIndex);