Taylor Cramer
1691e06db6
Future-proof the Futures API
2019-04-05 15:03:33 -07:00
Alexander Regueiro
8629fd3e4e
Improvements to comments in libstd, libcore, liballoc.
2019-03-11 02:25:44 +00:00
Matthias Einwag
a1c4cf6889
Change RawWaker constructor to const fn
2019-02-06 22:56:33 -08:00
Matthias Einwag
363e992b98
review suggestions
2019-02-05 01:30:00 -08:00
Matthias Einwag
e1ec81459d
Apply more review suggestions
2019-02-05 01:14:09 -08:00
Matthias Einwag
9e6bc3c438
Apply review suggestions and fix tests
2019-02-03 13:46:53 -08:00
Mazdak Farrokhzad
01a704cf36
Apply suggestions from code review
...
Co-Authored-By: Matthias247 <matthias.einwag@live.com>
2019-02-03 13:46:53 -08:00
Matthias Einwag
d9a4b22d32
Update the future/task API
...
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-02-03 13:46:53 -08:00
Mark Rousskov
2a663555dd
Remove licenses
2018-12-25 21:08:33 -07:00
Alexander Regueiro
ee89c088b0
Various minor/cosmetic improvements to code
2018-12-07 23:53:34 +00:00
Andy Russell
4e35cbb22e
fix various typos in doc comments
2018-11-13 14:45:31 -05:00
Son
35391326a6
Update comment based on suggestion.
2018-10-24 09:28:04 +11:00
Son
a70ef6a20b
Seems like we don't have to refer the file anymore.
2018-10-17 08:03:12 +11:00
Son
f8550a499f
Add doc for impl From for Waker
2018-10-17 07:59:38 +11:00
Taylor Cramer
00e0565c38
LocalWaker and Waker cleanups
2018-10-01 15:16:06 -07:00
Taylor Cramer
1b00f0b9fa
Remove spawning from task::Context
2018-09-19 15:01:19 -07:00
Josef Reinhard Brandl
ea25cf1cc6
Fix From<LocalWaker>
2018-07-29 10:45:17 +02:00
ljedrz
8646a17143
Enforce #![deny(bare_trait_objects)] in src/libcore
2018-07-25 10:21:41 +09:00
Thomas de Zeeuw
89495f3ca3
Forget Waker when cloning LocalWaker
...
Since NonNull is Copy the inner field of the cloned Waker was copied for
use in the new LocalWaker, however this left Waker to be dropped. Which
means that when cloning LocalWaker would also erroneously call drop_raw.
This change forgets the Waker, rather then dropping it, leaving the
inner field to be used by the returned LocalWaker.
Closes #52629 .
2018-07-23 13:45:25 +02:00
Sean McArthur
4f4e91a69d
task: remove wrong comments about non-existent LocalWake trait
2018-07-12 15:43:57 -07:00
Taylor Cramer
a2b21e5819
Make Waker and LocalWaker Unpin
...
These types never project pinned-ness into their contents,
so it is safe for them to be `Unpin`.
2018-06-29 19:33:16 -07:00
Josef Reinhard Brandl
1f9aa1332f
Split libcore/task.rs into submodules
2018-06-26 16:40:42 +02:00