k-nasa
314a75da28
fix typo
2019-11-20 00:00:54 +09:00
Pascal Hertleif
c704643296
Remove verbose-errors cargo feature
2019-11-19 13:15:48 +01:00
Yoshua Wuyts
c6622475b2
Merge pull request #555 from stjepang/optimize-cargo-check
...
Macro optimization to reduce compilation times
2019-11-19 05:15:58 +01:00
Stjepan Glavina
65afd41a33
Once doesn't need Unpin bound ( #554 )
2019-11-19 05:04:18 +01:00
Stjepan Glavina
d3e7f32a30
Macro optimization to reduce compilation times
2019-11-18 15:47:45 +00:00
Razican
f6829859fe
Fixed deduplication of code
2019-11-18 16:39:21 +01:00
hhggit
2c9b558d14
add os::windows::symlink_{dir,file}
2019-11-18 10:20:07 +08:00
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
yjhmelody
223fcc30ee
fix code style for stream
2019-11-17 00:35:56 +08:00
k-nasa
76975a4441
Merge branch 'master' into fix_clippy
2019-11-16 02:41:39 +09: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
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
k-nasa
7d616c695d
refactor: change to as_mut
2019-11-16 01:58:45 +09:00
yjhmelody
a69b3a8a9e
use as_mut for stream-partition
2019-11-16 00:54:50 +08:00
k-nasa
a05b6a3810
fix: mutable ref
2019-11-16 01:36:53 +09:00
k-nasa
6cbf48f12d
fix clippy warn
2019-11-16 01:29:16 +09:00
k-nasa
91ee4c7b9f
doc: Add stream unzip doc
2019-11-16 01:16:48 +09:00
k-nasa
603b3c5085
add: Add stream unzip
2019-11-16 01:16:35 +09: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
k-nasa
df92c63337
fix: Add unstable features
2019-11-16 00:29:54 +09:00
k-nasa
31cf932d80
wip: Add stream unzip
2019-11-16 00:24:59 +09:00
Yoshua Wuyts
3c6d41ccb4
Merge pull request #541 from yjhmelody/stream-partition
...
add stream-partition
2019-11-15 14:27:42 +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
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
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
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
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
yjhmelody
5adb112a00
export IntoInnerError for io
2019-11-13 13:52:16 +08:00
yjhmelody
9d634cb2a7
refactor io dir to be same with std
2019-11-13 12:42:59 +08:00
yjhmelody
879af6dc85
Add Stream max
2019-11-13 10:50:09 +08:00
Yoshua Wuyts
2dfdc1c482
polish lib.rs examples
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-11-12 23:10:23 +01:00
Grzegorz Gierlach
e442eba625
Cleaning up stream pinning.
2019-11-12 19:51:58 +01:00
Grzegorz Gierlach
f0875d2dca
Cleaning up stream pinning.
2019-11-12 19:34:08 +01:00
Devashish Dixit
f611ceccc8
Run cargo fmt for doc comments ( #515 )
2019-11-12 17:47:03 +01:00
Wouter Geraedts
c5b3a98e5b
Increased throttle test to 10x time
2019-11-12 16:22:25 +01:00
Wouter Geraedts
4ab7b213de
Updated example to be consistent; added timing measurements to throttle
2019-11-12 15:38:02 +01:00
Wouter Geraedts
6990c1403f
Reimplemented throttle to never drop Delay, added boolean flag
2019-11-12 15:07:20 +01:00
Wouter Geraedts
77a1849303
Merge branch '342-stream-throttle' of github.com:Wassasin/async-std into 342-stream-throttle
2019-11-12 15:03:54 +01:00
Wouter Geraedts
a722de1a10
Merge remote-tracking branch 'upstream/master' into 342-stream-throttle
2019-11-12 14:51:24 +01:00
Wouter Geraedts
88cbf2c119
Change throttle test to run in milliseconds
2019-11-12 14:51:11 +01:00
Wouter Geraedts
6f6d5e9d20
Updated throttle fn comments.
...
Co-Authored-By: Yoshua Wuyts <yoshuawuyts+github@gmail.com>
2019-11-12 14:35:03 +01:00
Wouter Geraedts
7c7386735e
Wrap around throttle comment
...
Co-Authored-By: Yoshua Wuyts <yoshuawuyts+github@gmail.com>
2019-11-12 14:34:31 +01:00
Yoshua Wuyts
0d5c7a217f
stabilize task::yield_now
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-11-12 02:10:55 +01:00
Stjepan Glavina
1a50ffd144
Delete unused import
2019-11-12 00:38:22 +01:00
Stjepan Glavina
21c5c48cb6
Lower the timeout to 1 second
2019-11-12 00:37:54 +01:00
Stjepan Glavina
6677d52c2d
Improve thread creating algorithm in spawn_blocking
2019-11-12 00:35:29 +01:00
Johannes Weissmann
37922408e5
use pin_project
2019-11-11 22:17:29 +01:00
Johannes Weissmann
7d2282dbd2
fix merge conflict
2019-11-11 22:11:06 +01:00
Johannes Weissmann
60f822bee5
Merge branch 'master' into stream_count
2019-11-11 22:06:09 +01:00
Yoshua Wuyts
4aa9928ece
v1.0.0
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-11-11 16:13:22 +01:00
Stjepan Glavina
5438258cee
Remove unused import
2019-11-11 13:19:59 +01:00
Wouter Geraedts
ef958f0408
Use pin_project_lite instead for throttle
2019-11-11 13:09:41 +01:00
Stjepan Glavina
dc5d143c16
Merge branch 'master' into cleanup-stream
2019-11-11 13:08:38 +01:00
Stjepan Glavina
c2f750d288
Cleanup stream module
2019-11-11 13:07:29 +01:00
Wouter Geraedts
139a34b685
Make throttle an unstable feature
2019-11-11 12:26:32 +01:00
Wouter Geraedts
b591fc68bd
Changed semantics of throttle to non-dropping variant with backpressure
2019-11-11 12:17:00 +01:00
razican
5d558ca213
Fixed test, order is no longer guaranteed
2019-11-11 11:39:30 +01:00
razican
e48e463736
Duplicating code due to strange Rust error.
2019-11-11 11:26:40 +01:00
razican
0c37d4af10
Anonymous function to avoid type issues
2019-11-11 11:25:50 +01:00
Stjepan Glavina
352f18bc2a
Use async_std::sync::Arc in examples ( #501 )
2019-11-11 11:10:36 +01:00
razican
79bbf4938d
Randomize Stream::merge to improve the throughput. Implements #490 .
2019-11-11 10:44:12 +01:00
Wouter Geraedts
14d7d3bf9c
Merge remote-tracking branch 'upstream/master' into 342-stream-throttle
2019-11-11 10:15:27 +01:00
Stjepan Glavina
417b548692
Cleanup path module ( #497 )
...
* Cleanup path module
* Derive clone for PathBuf and remove unused import
* impl AsRef<Path> for std::path::PathBuf
* Fix a doc comment
2019-11-11 00:31:33 +01:00
Stjepan Glavina
122e87364b
Remove cache padding in channels
2019-11-09 23:08:31 +01:00
Stjepan Glavina
d4f38e783f
Cleanup future module
2019-11-09 17:26:19 +01:00
Yoshua Wuyts
96d3560742
remove future::*join macros ( #492 )
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-11-09 17:02:48 +01:00
Yoshua Wuyts
ac1042a9ca
note on Stream::merge ordering ( #491 )
...
* note on Stream::merge ordering
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
* Update src/stream/stream/mod.rs
2019-11-09 17:02:17 +01:00
Stjepan Glavina
9e185f1c3e
Unstable feature: copy takes arguments by value ( #471 )
...
* Unstable feature: copy takes arguments by value
* Fix feature flags
2019-11-09 16:59:35 +01:00
Yoshua Wuyts
89d611628a
Merge pull request #483 from ryan-scott-dev/rscott/pathbuf_fromiter
...
Add FromIterator and Extend trait implementations for PathBuf
2019-11-09 13:03:28 +01:00
Jayson Reis
d8e52c1002
Implement FromStr for PathBuf
...
This makes PathBuf compatible with std version as you can simply call
let path: PathBuf = FromStr::from_str(s).unwrap()
2019-11-09 12:14:56 +01:00
Yoshua Wuyts
037119c0c0
Merge pull request #478 from portgasd666/master
...
Add Future::join and Future::try_join
2019-11-09 11:31:47 +01:00