about summary refs log tree commit diff
path: root/src/libstd/future.rs
AgeCommit message (Collapse)AuthorLines
2019-04-23Stabilize futures_apiTaylor Cramer-0/+1
2019-04-05Future-proof the Futures APITaylor Cramer-25/+36
2019-02-03Update the future/task APIMatthias Einwag-10/+10
This change updates the future and task API as discussed in the stabilization RFC at https://github.com/rust-lang/rfcs/pull/2592. Changes: - Replacing UnsafeWake with RawWaker and RawWakerVtable - Removal of LocalWaker - Removal of Arc-based Wake trait
2019-01-27Change generator trait to use pinningWim Looman-1/+3
2019-01-23Fix std::future::from_generator documentationAaron Hill-1/+1
This function takes a generator and wraps it in a future, not vice-versa.
2018-12-25Remove licensesMark Rousskov-10/+0
2018-12-21Update Pin API to match the one proposed for stabilizationTaylor Cramer-1/+1
Remove pin::Unpin reexport and add Unpin to the prelude. Change Pin associated functions to methods. Rename get_mut_unchecked_ to get_unchecked_mut Remove impl Unpin for Pin Mark Pin repr(transparent)
2018-11-28fix futures aliasing mutable and shared refRalf Jung-2/+2
2018-09-19Remove spawning from task::ContextTaylor Cramer-32/+27
2018-09-01Update to a new pinning API.Without Boats-5/+5
2018-08-23move PinMut into pin module and export through stdNiv Kaminer-1/+1
2018-08-19Fix typos found by codespell.Matthias Krüger-1/+1
2018-08-02Remove unnecessary local in await! macroTaylor Cramer-2/+2
2018-06-23`PinMut`: Add safe `get_mut` and rename unsafe fns to `get_mut_unchecked` ↵Josef Reinhard Brandl-1/+1
and `map_unchecked`
2018-06-22Remove impl trait names and move bits of await into a functionTaylor Cramer-10/+20
2018-06-22Review nits and updatesTaylor Cramer-0/+106
Move future_from_generator out of raw Update await to use $crate Renumber errors
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-210/+0
This only changes the directory names; it does not change the "real" metadata names.
2013-05-19Use assert_eq! rather than assert! where possibleCorey Richardson-7/+7
2013-05-18auto merge of #6577 : brson/rust/io-upstream, r=pcwaltonbors-7/+3
r? This is all of my scheduler work on #4419 from the last 3 weeks or so. I've had a few failed pull requests so far but I think the problems are ironed out. * TCP * The beginnings of runtime embedding APIs * Porting various corners of core to be compatible with both schedulers * libuv timer bindings * Further refinement of I/O error handling, including a new, incomplete, `read_error` condition * Incomplete refactoring to make tasks work without coroutines and user-space scheduling * Implementations of Reader/Writer extension methods * Implementations of the most important part of core::comm I'm particularly happy with how easy the [comm types on top of the scheduler](https://github.com/brson/rust/blob/io-upstream/src/libcore/rt/comm.rs). Note that these implementations do not use pipes. If anything here needs careful review though it's this code. This branch passes 95% of the run-pass tests (with `TESTARGS=--newrt`) In the next week I'll probably spend some time adding preliminary multithreading and seeing how close we are to removing the old runtime.
2013-05-18Remove trailing whitespacesOlivier Saut-1/+1
2013-05-17core: Wire up oneshot pipes to newschedBrian Anderson-7/+3
2013-05-17Correct the example given for a future, add punctuation where necessaryOlivier Saut-6/+8
2013-05-14Use static string with fail!() and remove fail!(fmt!())Björn Steinbrink-2/+2
fail!() used to require owned strings but can handle static strings now. Also, it can pass its arguments to fmt!() on its own, no need for the caller to call fmt!() itself.
2013-05-11Warning policeTim Chevalier-38/+2
2013-05-10Stop using the '<->' operatorAlex Crichton-4/+3
2013-05-09remove vecs_implicitly_copyable from libstd/libcoreDaniel Micay-2/+2
2013-05-08libcore: Fix tests.Patrick Walton-3/+4
2013-05-08librustc: Fix merge fallout.Patrick Walton-0/+7
2013-05-08libstd: Remove mutable fields from future and parPatrick Walton-21/+56
2013-05-04Register snapshotsBrian Anderson-29/+0
2013-05-03std: Warning policeTim Chevalier-1/+1
2013-04-29test: Fix more tests.Patrick Walton-1/+1
2013-04-29librustc: Forbid type implementations on typedefs.Patrick Walton-7/+6
2013-04-27only use #[no_core] in libcoreDaniel Micay-2/+0
2013-04-16libcore,std,syntax,rustc: move tests into `mod tests`, make them private (no ↵Huon Wilson-9/+9
pub mod or pub fn).
2013-04-10libstd: changes to in response to #5656Niko Matsakis-1/+29
2013-03-29librustc: Remove `fail_unless!`Patrick Walton-7/+7
2013-03-28Removing unused importsAlex Crichton-1/+1
2013-03-22libstd: Remove all uses of `pure` from libstd. rs=depurePatrick Walton-1/+1
2013-03-21librustc: Forbid destructors from being attached to any structs that might ↵Patrick Walton-0/+1
contain non-Owned fields. r=nmatsakis
2013-03-18librustc: Convert all uses of old lifetime notation to new lifetime ↵Patrick Walton-1/+1
notation. rs=delifetiming
2013-03-07librustc: Convert all uses of `assert` over to `fail_unless!`Patrick Walton-7/+7
2013-03-07De-implicit-self libstdBen Striegel-1/+1
2013-03-04Remove unused imports throughout src/Alex Crichton-3/+1
2013-03-02libstd: Remove `fn@`, `fn~`, and `fn&` from libstd. rs=defunPatrick Walton-3/+3
2013-02-28Fix implicit leaks of imports throughout librariesAlex Crichton-1/+1
Also touch up use of 'pub' and move some tests around so the tested functions don't have to be 'pub'
2013-02-28librustc: Mark all type implementations public. rs=impl-publicityPatrick Walton-2/+2
2013-02-27libsyntax: Forbid `~mut` and `~const`. rs=demutingPatrick Walton-6/+5
2013-02-21core: Extract comm from pipes. #4742Brian Anderson-2/+3
2013-02-17Remove use of capture clause #4965Seth Pink-1/+1