Commit graph

1113 commits

Author SHA1 Message Date
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
CosciaDiPollo
9ad0cf9f80 Correct a typo on the async-std version (#508)
Correct a typo on the async-std version in the Cargo.toml file of the documentation.
2019-11-11 21:14:55 +01:00
Yoshua Wuyts
980c30e90f
Merge pull request #496 from async-rs/1.0.0
1.0.0
2019-11-11 18:05:53 +01:00
Yoshua Wuyts
4aa9928ece
v1.0.0
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-11-11 16:13:22 +01:00
Yoshua Wuyts
eea7af24db
fix bugs in changelog
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-11-11 15:53:13 +01:00
Yoshua Wuyts
76c5ffe9ab
Merge pull request #506 from stjepang/cleanup-stream
Cleanup stream module
2019-11-11 15:46:58 +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
Yoshua Wuyts
925b42bc89
Merge pull request #493 from stjepang/cleanup-future
Cleanup future module
2019-11-09 18:19:40 +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
Yoshua Wuyts
e9c0f8f6b5
Merge pull request #481 from async-rs/fix-proc-macro-render
fix attributes feature
2019-11-09 12:56:10 +01:00
Yoshua Wuyts
16565ccfbc
Merge pull request #489 from jaysonsantos/pathbuf-fromstr
Implement FromStr for PathBuf
2019-11-09 12:51:42 +01:00
Yoshua Wuyts
74882c119d
check attributes
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-11-09 12:44:14 +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
Stjepan Glavina
548733e5d5
Cleanup stream traits (#487)
* Cleanup stream traits

* Fix docs
2019-11-09 11:22:09 +01:00
Abhishek C. Sharma
f04b6f6fe9 Change module level docs for future to refer to join and try_join functions instead of macros 2019-11-09 13:09:47 +05:30
Friedel Ziegelmayer
4a78f731b7 fix: stream::take_while (#485)
When the predicate is false, the stream should be ended.
2019-11-09 00:00:03 +01:00
nasa
d2d63348c7 Stable and beta add to CI (#482)
* Add stable and beta

* Add benches
2019-11-08 14:05:53 +01:00
Ryan Scott
8f3366072f Add FromIterator and Extend trait implementations for PathBuf 2019-11-08 22:10:56 +11:00
Yoshua Wuyts
e74e246bbb
fix attributes feature
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-11-08 11:15:47 +01:00
laizy
fb19ebde17 add Sync constraint for RwLock to prevent memory unsafety (#479) 2019-11-08 08:56:55 +00:00
Abhishek C. Sharma
b14282457c Add Future::join and Future::try_join 2019-11-08 11:29:39 +05:30
Stjepan Glavina
ab2f64cd84 Mark extend() as unstable 2019-11-08 02:38:49 +01:00
Yoshua Wuyts
fd088fea38 0.99.12 (#469)
* 0.99.12

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>

* Update changelog with latest changes
2019-11-08 00:11:35 +00:00
Yoshua Wuyts
335bd34470 Add "std" feature flag (#476)
* core feature

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>

* introduce std + default features

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>

* test std features on ci

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>

* finish up all features

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>

* Fix task_local macro

* Remove crossbeam-channel and futures-timer from std

* Move future::timeout() behind cfg_default
2019-11-07 23:56:58 +00:00
Stjepan Glavina
f588ba6bdd
Spawn more than one blocking thread (#475)
* Spawn more than 1 blocking thread

* Fix a bug

* Fix check when the thread is last sleeping
2019-11-07 23:39:54 +00:00
Yoshua Wuyts
84880c4d8b re-export async-attributes (#238)
* re-export async-attributes

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>

* doc order

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>

* rebase + rename feature to "attributes"

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>

* only expose test and main

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>

* async-attributes 1.1.0

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-11-07 22:10:55 +00:00
Stjepan Glavina
bc24503382
Fix deadlock when all receivers are dropped (#474)
* Fix deadlock when all receivers are dropped

* Add a comment to explain the behavior of try_send

* Disable clippy
2019-11-07 22:01:36 +00:00
Yoshua Wuyts
266e6326eb document path submodule (#467)
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-11-07 21:48:23 +00:00
Stjepan Glavina
f8e82564d9
Rename stream_extend to extend (#464)
* Rename stream_extend to extend

* Remove Extend from prelude

* Add stream::extend()
2019-11-07 21:46:58 +00:00
Abhishek C Sharma
eb1ef3f4e4 Minor documentation fix for race and try_race (#473) 2019-11-07 19:19:05 +00:00