var searchIndex = {}; searchIndex["tangle"] = {"doc":"A lightweight futures package inspired by Scala. The goals are to provide\na simple interface for creating futures and, most importantly, composing multiple\nasynchronous actions together. Thus, all futures return `Async<T, E>` which is\nan asynchronous equivalent to `Result<T, E>`, the only difference being that\nan extra variant `Continue(Future<T, E>)` allows for composition.","items":[[3,"Promise","tangle","",null,null],[3,"Future","","A value that will resolve itself sometime in the future, asynchronously. Futures are completely\ncomposable which allows you to chain together asynchronous computations.",null,null],[4,"Async","","Asynchronous version of `Result<T, E>` that allows for future composition. Additional\nmacros are provided to work with both `Async<T, E>` and `Result<T, E>`.",null,null],[13,"Ok","","",0,null],[13,"Err","","",0,null],[13,"Continue","","",0,null],[4,"PromiseState","","",null,null],[13,"Waiting","","",1,null],[13,"Resolved","","",1,null],[13,"Failed","","",1,null],[11,"fmt","","",0,null],[11,"map","","",0,null],[11,"map_err","","",0,null],[11,"is_err","","",0,null],[11,"is_future","","",0,null],[11,"is_ok","","",0,null],[11,"fmt","","",1,null],[11,"fmt","","",2,null],[11,"new","","```\nuse tangle_future::{Promise};\nlet mut p = Promise::<u32, ()>::new();",2,{"inputs":[],"output":{"name":"promise"}}],[11,"future","","",2,null],[11,"fmt","","",3,null],[11,"new","","```\nuse tangle_future::{Future, Async};",3,{"inputs":[{"name":"f"}],"output":{"name":"future"}}],[11,"from_async_channel","","",3,{"inputs":[{"name":"receiver"}],"output":{"name":"future"}}],[11,"from_channel","","Create a new future from the receiving end of a native channel.",3,{"inputs":[{"name":"receiver"}],"output":{"name":"future"}}],[11,"flat_map","","```\nuse tangle_future::{Future, Async};",3,null],[11,"map","","```\nuse tangle_future::{Future, Async};",3,null],[11,"await","","",3,null],[11,"val","","```\nuse tangle_future::Future;",3,{"inputs":[{"name":"t"}],"output":{"name":"future"}}],[11,"err","","```\nuse tangle_future::Future;",3,{"inputs":[{"name":"e"}],"output":{"name":"future"}}],[14,"ok!","","ok!(123)",null,null],[14,"err!","","",null,null],[14,"compose!","","compose!(future! {\n err!(123)\n})",null,null],[14,"async!","","```notrust\nasync!(Ok(123)) // Async::Ok(123)\n```",null,null],[14,"future!","","",null,null]],"paths":[[4,"Async"],[4,"PromiseState"],[3,"Promise"],[3,"Future"]]}; initSearch(searchIndex);