var searchIndex = {}; searchIndex["promising_future"] = {"doc":"Futures and Promises\n====================","items":[[3,"ThreadSpawner","promising_future","An implementation of `Spawner` that creates normal `std::thread` threads.",null,null],[3,"Future","","An undetermined value.",null,null],[3,"FutureIter","","Blocking iterator for the value of a `Future`. Returns either 0 or 1 values.",null,null],[3,"Promise","","A box for resolving a `Future`.",null,null],[3,"FutureStream","","Stream of multiple `Future`s",null,null],[3,"FutureStreamIter","","Iterator for completed `Future`s in a `FutureStream`. The iterator incrementally returns values\nfrom resolved `Future`s, blocking while there are no unresolved `Future`s. `Future`s which\nresolve to no value are discarded.",null,null],[4,"Pollresult","","Result of calling `Future.poll()`.",null,null],[13,"Unresolved","","`Future` is not yet resolved; returns the `Future` for further use.",0,null],[13,"Resolved","","`Future` has been resolved, and may or may not have a value. The `Future` has been consumed.",0,null],[5,"future_promise","","Construct a `Future`/`Promise` pair.",null,null],[5,"any","","Return first available `Future` from an iterator of `Future`s.",null,{"inputs":[{"name":"i"}],"output":{"name":"option"}}],[5,"all_with","","Return a Future of all values in an iterator of `Future`s.",null,{"inputs":[{"name":"i"},{"name":"s"}],"output":{"name":"future"}}],[5,"all","","Return a Future of all values in an iterator of `Future`s.",null,{"inputs":[{"name":"i"}],"output":{"name":"future"}}],[8,"Spawner","","A trait for spawning threads.",null,null],[10,"spawn","","Spawn a thread to run function `f`.",1,null],[11,"spawn","","",2,null],[11,"fmt","","",0,null],[11,"with_value","","Construct an already resolved `Future` with a value. It is equivalent to a `Future` whose\n`Promise` has already been fulfilled.",3,{"inputs":[{"name":"t"}],"output":{"name":"future"}}],[11,"never","","Construct a resolved `Future` which will never have a value; it is equivalent to a `Future`\nwhose `Promise` completed unfulfilled.",3,{"inputs":[],"output":{"name":"future"}}],[11,"poll","","Test to see if the `Future` is resolved yet.",3,null],[11,"value","","Block until the `Future` is resolved.",3,null],[11,"chain","","Chain two `Future`s.",3,null],[11,"chain_with","","As with `chain`, but pass a `Spawner` to control how the thread is created.",3,null],[11,"then_opt","","Set a synchronous callback to run in the Promise's context.",3,null],[11,"then","","Set synchronous callback",3,null],[11,"callback","","Set a callback to run in the `Promise`'s context.",3,null],[11,"from","","",3,{"inputs":[{"name":"option"}],"output":{"name":"future"}}],[11,"into_iter","","",3,null],[11,"next","","",4,null],[11,"fmt","","",3,null],[11,"set","","Fulfill the `Promise` by resolving the corresponding `Future` with a value.",5,null],[11,"canceled","","Return true if the corresponding `Future` no longer exists, and so any value set would be\ndiscarded.",5,null],[11,"drop","","",5,null],[11,"fmt","","",5,null],[11,"new","","",6,{"inputs":[],"output":{"name":"futurestream"}}],[11,"add","","Add a `Future` to the stream.",6,null],[11,"outstanding","","Return number of outstanding `Future`s.",6,null],[11,"poll","","Return any resolved `Future`s, but don't wait for more to resolve.",6,null],[11,"wait","","Return resolved `Future`s. Blocks if there are outstanding `Futures` which are not yet\nresolved. Returns `None` when there are no more outstanding `Future`s.",6,null],[11,"into_iter","","",6,null],[11,"next","","",7,null],[11,"from_iter","","",6,{"inputs":[{"name":"i"}],"output":{"name":"self"}}]],"paths":[[4,"Pollresult"],[8,"Spawner"],[3,"ThreadSpawner"],[3,"Future"],[3,"FutureIter"],[3,"Promise"],[3,"FutureStream"],[3,"FutureStreamIter"]]}; initSearch(searchIndex);