Commit graph

1037 commits

Author SHA1 Message Date
Pascal Hertleif
99ddfb3f93 Wrap code more clearly in cfg blocks 2019-11-17 23:11:11 +01:00
Pascal Hertleif
8ce3e78952 verbose errors feature
This adds a new "verbose-errors" feature flag to async-std that enables
wrapping certain errors in structures with more context. As an example,
we use it in `fs::File::{open,create}` to add the given path to the
error message (something that is lacking in std to annoyance of many).
2019-11-17 21:54:44 +01:00
Yoshua Wuyts
355e2eded8
Merge pull request #547 from async-rs/unpin-successors-test
remove pin_mut from successors test
2019-11-15 18:24:58 +01:00
Yoshua Wuyts
6cc9e4dd2b
Merge pull request #544 from async-rs/update-futures-timer
update futures-timer & other deps
2019-11-15 18:12:03 +01:00
Yoshua Wuyts
ee23ba6e94
Merge pull request #545 from yjhmelody/stream-partition-patch
use `as_mut` for stream-partition
2019-11-15 18:08:51 +01:00
Yoshua Wuyts
d68dc659b2
remove pin_mut from successors test
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-11-15 18:08:00 +01:00
Yoshua Wuyts
b5c3fb8bb5
Merge pull request #363 from felipesere/async-successors
Async successors
2019-11-15 18:04:10 +01:00
yjhmelody
a69b3a8a9e use as_mut for stream-partition 2019-11-16 00:54:50 +08:00
Yoshua Wuyts
693a7257b8
Merge pull request #538 from k-nasa/stream_by_ref
Add stream by_ref
2019-11-15 17:14:17 +01:00
Yoshua Wuyts
8779c04dc7
upgrade all deps
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-11-15 16:59:58 +01:00
Yoshua Wuyts
3564be9c0c
update futures-timer dep
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-11-15 16:58:33 +01:00
k-nasa
df92c63337 fix: Add unstable features 2019-11-16 00:29:54 +09:00
Yoshua Wuyts
3c6d41ccb4
Merge pull request #541 from yjhmelody/stream-partition
add stream-partition
2019-11-15 14:27:42 +01:00
Yoshua Wuyts
837604b833
Merge pull request #542 from yjhmelody/update-doc
update doc url
2019-11-15 14:26:36 +01:00
yjh
74caed2d4b
Update src/io/seek/mod.rs
Co-Authored-By: Taiki Endo <te316e89@gmail.com>
2019-11-15 18:22:06 +08:00
yjhmelody
76ec9c4563 update doc url 2019-11-15 14:33:34 +08:00
yjhmelody
d76b32e6d4 make it unstable and fix trait bound 2019-11-15 14:23:34 +08:00
yjhmelody
11268a80fb add stream-partition 2019-11-15 12:28:03 +08:00
Yoshua Wuyts
c4ba11ff95
Merge pull request #535 from async-rs/docs-sender-recv
backlink channel types
2019-11-15 03:35:43 +01:00
k-nasa
de67bf0fd4 feat: Add stream by_ref 2019-11-15 11:17:39 +09:00
nasa
77a0419a3e
Merge pull request #536 from async-rs/count-unstable
mark Stream::count as unstable
2019-11-15 08:41:29 +09:00
Yoshua Wuyts
ce98834039
Merge pull request #531 from sclaire-1/master
Edit tutorial index.md
2019-11-14 22:56:13 +01:00
Yoshua Wuyts
30ff7b09b6
mark Stream::count as unstable
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-11-14 22:45:46 +01:00
Yoshua Wuyts
c58747b5fc
Merge pull request #368 from starsheriff/stream_count
add stream::count
2019-11-14 22:40:45 +01:00
Yoshua Wuyts
31f129ebe7
backlink channel types
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-11-14 22:37:04 +01:00
Yoshua Wuyts
f49d7cbbb8
Merge pull request #533 from async-rs/remove-throttle-example
remove standalone throttle example
2019-11-14 22:30:48 +01:00
Felipe Sere
64216b8e6b Take a normal closure, not an async one 2019-11-14 21:49:24 +01:00
Felipe Sere
786a52a09d Slight miss-merge 2019-11-14 21:37:51 +01:00
Felipe Sere
f14b37ff17 Remoe the T: Copy bound on the item 2019-11-14 21:35:38 +01:00
Felipe Sere
7677e9a3df Make the closure take a borrow to the value 2019-11-14 21:35:38 +01:00
Felipe Sere
bfb42b432e Rearrange docs to match 'repeat' 2019-11-14 21:35:38 +01:00
Felipe Sere
4c09cdbeac Mark successors as unstable 2019-11-14 21:35:38 +01:00
Felipe Sere
243cdd7ff1 Slight miss-merge 2019-11-14 21:35:19 +01:00
Felipe Sere
a257b7018c Rename some variables to match iter 2019-11-14 21:35:19 +01:00
Felipe Sere
af928163e4 Got further! Thx Josh! 2019-11-14 21:35:19 +01:00
Felipe Sere
8d97e0f974 Only produes empty value if next is ever a 'None' 2019-11-14 21:35:19 +01:00
Felipe Sere
266754897e Rename the module to 'successors' 2019-11-14 21:35:19 +01:00
Felipe Sere
554d5cfbc1 Slight renamings 2019-11-14 21:34:57 +01:00
Felipe Sere
8b662b659d Run rustfmt 2019-11-14 21:34:19 +01:00
Felipe Sere
95a3e53fcd Only use the Option of the future to decide to construct a new one 2019-11-14 21:33:45 +01:00
Felipe Sere
02b261de10 It compiles! Store the future and poll it instead of creating multiple new ones 2019-11-14 21:33:45 +01:00
Felipe Sere
fe3c9ef626 First attempt at successor 2019-11-14 21:33:45 +01:00
Yoshua Wuyts
4e1d79adb1
Merge pull request #524 from yjhmelody/stream-max
Add Stream max
2019-11-14 21:28:36 +01:00
Yoshua Wuyts
1546448800
remove throttle example
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-11-14 21:27:20 +01:00
Yoshua Wuyts
338273eb18
Merge pull request #356 from Wassasin/342-stream-throttle
Implemented StreamExt::throttle
2019-11-14 21:25:34 +01:00
Wouter Geraedts
dda65cbff0 Start throttle measurement before initialisation 2019-11-14 11:29:49 +01:00
Johannes Weissmann
9ebe41f2d6
Update src/stream/stream/mod.rs
Co-Authored-By: nasa <htilcs1115@gmail.com>
2019-11-14 10:34:09 +01:00
Wouter Geraedts
90c67c223a Decreased throttle test time to original values; only test lower bound 2019-11-14 10:26:56 +01:00
sclaire-1
8473b738d0
Edit tutorial index.md
Edited the structure of sentences to make it easier to read
2019-11-13 16:33:44 -08:00
Stjepan Glavina
0c2282ffdc
Optimization: a slot for the next task to run (#529)
* Optimization: a slot for the next task to run

* Only notify workers when a task is pushed into a queue
2019-11-13 20:32:37 +01:00