about summary refs log tree commit diff
path: root/src/libcore/task/mod.rs
AgeCommit message (Collapse)AuthorLines
2020-07-27mv std libs to library/mark-15/+0
2020-07-14Add core::ready! macroYoshua Wuyts-0/+4
2019-11-26Format libcore with rustfmtDavid Tolnay-1/+1
This commit applies rustfmt with default settings to files in src/libcore *that are not involved in any currently open PR* to minimize merge conflicts. The list of files involved in open PRs was determined by querying GitHub's GraphQL API with this script: https://gist.github.com/dtolnay/aa9c34993dc051a4f344d1b10e4487e8 With the list of files from the script in `outstanding_files`, the relevant commands were: $ find src/libcore -name '*.rs' | xargs rustfmt --edition=2018 $ rg libcore outstanding_files | xargs git checkout -- Repeating this process several months apart should get us coverage of most of the rest of libcore.
2019-04-23Stabilize futures_apiTaylor Cramer-3/+3
2019-04-05Future-proof the Futures APITaylor Cramer-1/+1
2019-02-03Update the future/task APIMatthias Einwag-1/+1
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
2018-12-25Remove licensesMark Rousskov-10/+0
2018-09-19Remove spawning from task::ContextTaylor Cramer-6/+0
2018-08-06Rename Executor trait to SpawnJosef Reinhard Brandl-4/+2
2018-07-02Add lifetime to `FutureObj`Josef Reinhard Brandl-3/+0
2018-07-02Make custom trait object for `Future` genericJosef Reinhard Brandl-2/+2
2018-06-26Move spawn errors into executor.rsJosef Reinhard Brandl-4/+3
2018-06-26Add `LocalTaskObj`Josef Reinhard Brandl-2/+2
2018-06-26Split libcore/task.rs into submodulesJosef Reinhard Brandl-0/+33
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-1189/+0
This only changes the directory names; it does not change the "real" metadata names.
2013-05-20core::rt: Implement Local for TaskBrian Anderson-2/+3
2013-05-20core:rt:: Rename LocalServices to TaskBrian Anderson-2/+2
2013-05-19auto merge of #6106 : thestinger/rust/iter, r=bstriebors-10/+9
I don't have a strong opinion on the function vs. method, but there's no point in having both. I'd like to make a `repeat` adaptor like Python/Haskell for turning a value into an infinite stream of the value, so this has to at least be renamed.
2013-05-19Use assert_eq! rather than assert! where possibleCorey Richardson-8/+8
2013-05-18replace old_iter::repeat with the Times traitDaniel Micay-10/+9
2013-05-15core: Turn task::unkillable, etc. into no-ops in newsched. #6377Brian Anderson-17/+33
Not necessary just yet but they make ARC not work.
2013-05-14Use static string with fail!() and remove fail!(fmt!())Björn Steinbrink-3/+3
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-13Remove re-exports from libcore/core.rcAlex Crichton-1/+1
Also fix up all the fallout elsewhere throughout core. It's really nice being able to have the prelude.
2013-05-10Move core::task::local_data to core::local_dataYoungsoo Son-1/+0
2013-05-08libcore: Fix tests.Patrick Walton-47/+52
2013-05-08librustc: Stop parsing modes and remove them entirely from the languagePatrick Walton-3/+3
2013-05-08test: Fix tests and the pipe compilerPatrick Walton-0/+2
2013-05-08libcore: Remove mutable fields from the task builder APIPatrick Walton-118/+60
2013-05-03core: Warning policeTim Chevalier-1/+1
2013-05-02Merge remote-tracking branch 'brson/io' into incomingBrian Anderson-3/+26
Conflicts: mk/rt.mk src/libcore/run.rs
2013-05-02mod items need to be marked with `cfg(test)` not `test`.Felix S. Klock II-1/+1
2013-04-30auto merge of #6113 : brson/rust/task-drop, r=graydonbors-56/+21
2013-04-30Merge remote-tracking branch 'brson/io'Brian Anderson-3/+26
Conflicts: src/libcore/task/local_data_priv.rs
2013-04-29librustc: Remove `ptr::addr_of`.Patrick Walton-2/+2
2013-04-29core: Replace uses of 'drop' in task module with 'finally'. #5379Brian Anderson-56/+21
2013-04-28make way for a new iter moduleDaniel Micay-9/+9
2013-04-23core::rt: Tasks to not require an unwinderBrian Anderson-1/+10
A task without an unwinder will abort the process on failure. I'm using this in the runtime tests to guarantee that a call to `assert!` actually triggers some kind of failure (an abort) instead of silently doing nothing. This is essentially in lieu of a working linked failure implementation.
2013-04-22core::rt: Add unwinding to newsched tasksBrian Anderson-2/+16
2013-04-20core::rt: Add a test mod and put run_in_newsched_task thereBrian Anderson-1/+1
2013-04-19core: Wire up `spawn` to the new schedulerBrian Anderson-0/+9
It will check which scheduler it is running under and create the correct type of task as appropriate. Most options aren't supported but basic spawning works.
2013-04-19core: Don't use managed boxes in TaskBuilderBrian Anderson-7/+32
2013-04-18core::comm: Modernize constructors to use `new`Brian Anderson-2/+2
2013-04-18libcore: make spawn_supervised documentation reflect its behaviour.Huon Wilson-2/+3
2013-04-16libcore,std,syntax,rustc: move tests into `mod tests`, make them private (no ↵Huon Wilson-1/+1
pub mod or pub fn).
2013-04-14core: remove unnecessary unsafe blocks/functionsAlex Crichton-25/+54
2013-04-10core: changes in response to #5656Niko Matsakis-1/+1
2013-04-08core: Remove all but one drop block in favor of `finally`Brian Anderson-52/+17
2013-03-29librustc: Remove `fail_unless!`Patrick Walton-10/+10
2013-03-28Removing unused importsAlex Crichton-1/+3
2013-03-26option: rm functions that duplicate methodsDaniel Micay-4/+3