var searchIndex = {}; searchIndex["asynchronous"] = {"doc":"A **promise** based asynchronous library","items":[[3,"Deferred","asynchronous","Stores a function and delays its execution until it's transform to a promise.\nT : Type of value returned\nE : Type of error returned",null,null],[3,"Promise","","Stores a result of previous execution tasks.\nT : Type of value returned\nE : Type of error returned",null,null],[4,"ControlFlow","","Different possibilities for asynchronous treatment of vectors",null,null],[13,"Series","","Executes one after each other. Stops execution if one fails.",0,null],[13,"Parallel","","Executes all tasks at the same time",0,null],[13,"ParallelLimit","","Executes all tasks but only **usize** tasks running at the same time",0,null],[13,"ParallelCPUS","","Executes all tasks but only **NumberCpus** tasks running at the same time",0,null],[11,"new","","Create a new task in deferred.",1,{"inputs":[{"name":"f"}],"output":{"name":"deferred"}}],[11,"to_promise","","Executes the task stored and returns a Promise",1,null],[11,"vec_to_promise","","Executes a vector of tasks and returns a Promise with a vector of values in case that all tasks ended ok.\nIf there's one or more tasks with error, the promise fails and returns a vector with all the Results.",1,{"inputs":[{"name":"vec"},{"name":"controlflow"}],"output":{"name":"promise"}}],[11,"new","","Execute a task inmediatly and returns its Promise.",2,{"inputs":[{"name":"f"}],"output":{"name":"promise"}}],[11,"sync","","Syncronizes the execution with the caller, and returns its value.",2,null],[11,"all","","Creates a new promise with the result of all other Promises in the vector.",2,{"inputs":[{"name":"vec"}],"output":{"name":"promise"}}],[11,"then","","Executes a new task if the result of the previous promise is Ok. It may return a new type in a correct result (Ok),\nbut it must return the same type of error of its previous promise.",2,null],[11,"fail","","Executes a new task if the result of the previous promise is Err. It may return a new type in a correct result (Ok),\nbut it must return the same type of error of its previous promise.",2,null],[11,"finally","","Executes only one of the two functions received depending on the result of the previous promise (Ok or Err).\nIt doesn't return anything and it's completly asynchronous.",2,null],[11,"finally_sync","","Executes only one of the two functions received depending on the result of the previous promise (Ok or Err).\nIt doesn't return anything, but it's synchronized with the caller",2,null]],"paths":[[4,"ControlFlow"],[3,"Deferred"],[3,"Promise"]]}; initSearch(searchIndex);