Yoshua Wuyts
4346386610
fix doc recursion limit
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-10-28 12:42:23 +01:00
Yoshua Wuyts
ca4856a0e8
Merge pull request #377 from ktomsic/sum-and-product-impls
...
Add `Stream::sum()` and `Stream::product()` implementations
2019-10-28 12:34:30 +01:00
Yoshua Wuyts
e5675151b9
Merge pull request #364 from stjepang/optimize-flushing
...
Don't flush files if they weren't written to
2019-10-28 12:19:15 +01:00
Yoshua Wuyts
fd940b8c6a
Merge pull request #348 from k-nasa/add_stream_timeout
...
Add stream timeout
2019-10-28 12:12:02 +01:00
Yoshua Wuyts
1baee98ead
Merge pull request #375 from sunjay/fromstream-pathbuf
...
Added Extend + FromStream for PathBuf
2019-10-28 10:34:48 +01:00
k-nasa
613895d6be
doc: fix documantation text
2019-10-28 13:58:54 +09:00
Florian Gilcher
f262fd8a40
Merge pull request #392 from taiki-e/clippy
...
Remove usage of actions-rs/clippy-check
2019-10-27 20:26:43 -07:00
Florian Gilcher
c2a084ed4a
Merge pull request #393 from k-nasa/fix_clippy
...
Fix clippy warnings
2019-10-27 20:22:35 -07:00
Yoshua Wuyts
5f8e2cbd4a
add mod level docs for sync
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-10-28 00:34:27 +01:00
Yoshua Wuyts
20abd5cebf
standardize net docs
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-10-28 00:15:13 +01:00
Yoshua Wuyts
4c4604d63e
add stream mod docs
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-10-28 00:08:32 +01:00
Yoshua Wuyts
4475a229d6
backlink io docs
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-10-27 22:46:18 +01:00
Yoshua Wuyts
a3a740c14a
backlink all docs
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-10-27 22:29:20 +01:00
k-nasa
59615a655b
feat: Add StderrLock and StdoutLock struct
2019-10-27 22:04:43 +09:00
k-nasa
fe49f2618f
fix clippy::redundant_clone
2019-10-27 20:34:44 +09:00
k-nasa
7c293d37f7
fix clippy::comparison_chain
2019-10-27 20:32:22 +09:00
nasa
a42ae2f3d9
Narrow the disclosure range of FlattenCompat::new
...
Co-Authored-By: Taiki Endo <te316e89@gmail.com>
2019-10-27 12:35:51 +09:00
nasa
37f14b0195
Narrow the disclosure range of Flatten::new
...
Co-Authored-By: Taiki Endo <te316e89@gmail.com>
2019-10-27 12:35:32 +09:00
nasa
13a08b0d54
Narrow the disclosure range of FlatMap::new
...
Co-Authored-By: Taiki Endo <te316e89@gmail.com>
2019-10-27 12:35:14 +09:00
Taiki Endo
6549b66ad2
run clippy check on beta & address clippy warnings
2019-10-27 03:28:20 +09:00
yjhmelody
7cfec4e8ce
use take and remove Copy
2019-10-27 00:26:19 +08:00
yjh
fb78ed1812
Update src/stream/stream/min_by_key.rs
...
Co-Authored-By: Taiki Endo <te316e89@gmail.com>
2019-10-27 00:19:49 +08:00
yjh
5a4fdeb1cd
Update src/stream/stream/min_by_key.rs
...
Co-Authored-By: Taiki Endo <te316e89@gmail.com>
2019-10-27 00:18:18 +08:00
yjh
b57849e1cb
Update src/stream/stream/max_by.rs
...
Co-Authored-By: Taiki Endo <te316e89@gmail.com>
2019-10-27 00:18:01 +08:00
yjh
a8d3d1483f
Update src/stream/stream/max_by.rs
...
Co-Authored-By: Taiki Endo <te316e89@gmail.com>
2019-10-27 00:17:50 +08:00
yjh
006fc7e9de
Update src/stream/stream/max_by.rs
...
Co-Authored-By: Taiki Endo <te316e89@gmail.com>
2019-10-27 00:17:42 +08:00
yjhmelody
c9e6d3a84c
use pin_project_lite
2019-10-26 12:59:43 +08:00
yjhmelody
37a7eadf17
use pin_project_lite
2019-10-26 11:52:41 +08:00
yjhmelody
d0c3c9172b
Merge branch 'master' of git://github.com/async-std/async-std into stream-max_by
2019-10-26 11:34:59 +08:00
k-nasa
61b7a09c70
Fix type declaration
2019-10-26 01:45:12 +09:00
nasa
8932cecec7
Update src/stream/stream/flatten.rs
...
Co-Authored-By: Taiki Endo <te316e89@gmail.com>
2019-10-26 01:43:14 +09:00
nasa
bf3508ffb2
Update src/stream/stream/flatten.rs
...
Co-Authored-By: Taiki Endo <te316e89@gmail.com>
2019-10-26 01:43:07 +09:00
nasa
6168952d6f
Update src/stream/stream/flatten.rs
...
Co-Authored-By: Taiki Endo <te316e89@gmail.com>
2019-10-26 01:42:57 +09:00
nasa
b7b5df13aa
Update src/stream/stream/flatten.rs
...
Co-Authored-By: Taiki Endo <te316e89@gmail.com>
2019-10-26 01:42:39 +09:00
nasa
7ce721f562
Update src/lib.rs
...
Co-Authored-By: Taiki Endo <te316e89@gmail.com>
2019-10-26 01:42:19 +09:00
k-nasa
b66ffa670e
update recursion_limit
2019-10-26 00:42:27 +09:00
k-nasa
0c5abee284
to unstable stream::flat_map, stream::flatten
2019-10-26 00:36:04 +09:00
k-nasa
001368d3df
$cargo fmt
2019-10-26 00:29:10 +09:00
k-nasa
00e7e58bf3
fix type def
2019-10-26 00:26:53 +09:00
k-nasa
271b6f4a1c
fix: Using pin_project!
2019-10-25 23:58:08 +09:00
k-nasa
3297a0f327
Merge branch 'master' into add_stream_flatten
2019-10-25 23:34:44 +09:00
k-nasa
48b255897e
Merge branch 'master' into add_stdin_lock
2019-10-24 18:34:42 +09:00
k-nasa
feeb3c10df
fix: Remove Pin API related unsafe code
2019-10-24 08:41:01 +09:00
k-nasa
b17af61367
Merge branch 'master' into add_stream_timeout
2019-10-24 08:40:43 +09:00
k-nasa
d97b3dfdf3
fix: Remove Pin API related unsafe code
2019-10-24 08:29:05 +09:00
k-nasa
5c9cfb4fe8
Merge branch 'master' into add_future_delay
2019-10-24 08:23:01 +09:00
Stjepan Glavina
b2fe91385b
Add channel behind unstable feature flag ( #380 )
...
* Add channel behind unstable feature flag
* Don't check tests without unstable feature flag
* Fix typos
* Remove useless attribute
2019-10-23 17:02:03 +01:00
Taiki Endo
2abf5ca891
Deny warnings on CI ( #378 )
...
* Deny warnings on CI
* Fix some clippy warnings
2019-10-23 20:20:59 +09:00
yjhmelody
f5a0a0ba86
fmt
2019-10-23 19:17:24 +08:00
yjhmelody
d6f940110b
update doc
2019-10-23 19:04:04 +08:00
yjhmelody
020eb85093
add stream::min_by_key method
2019-10-23 18:59:06 +08:00
Taiki Endo
944e43d4bf
Remove Pin API related unsafe code by using pin-project-lite cra… ( #381 )
2019-10-23 10:35:02 +01:00
yjhmelody
4e5828e646
add stream::max_by method
2019-10-23 16:46:11 +08:00
Kyle Tomsic
e26eb7a719
Add Stream::sum()
and Stream::product()
implementations
...
These are the stream equivalents to `std::iter::Iterator::sum()` and
`std::iter::Iterator::product()`.
Note that this changeset tweaks the `Stream::Sum` and `Stream::Product`
traits a little: rather than returning a generic future `F`, they return
a pinned, boxed, `Future` trait object now. This is in line with other
traits that return a future, e.g. `FromStream`.
2019-10-22 20:30:27 -04:00
Sunjay Varma
0d4a907335
Added Extend + FromStream for PathBuf
2019-10-20 19:18:37 -04:00
k-nasa
410d16eaf6
Add docs + To unstable feature
2019-10-18 13:20:44 +09:00
k-nasa
1c1e2230f3
Merge branch 'master' into add_stream_flatten
2019-10-18 12:47:48 +09:00
k-nasa
176359afae
Add Stream::flatten
2019-10-18 12:20:28 +09:00
k-nasa
8138afbfad
feat: Add Stream trait for Flatten
2019-10-18 12:20:02 +09:00
k-nasa
cd862083a5
Add Flatten struct
2019-10-18 12:19:38 +09:00
k-nasa
2187a2a31d
feat: Add Stream::flat_map
2019-10-18 10:43:36 +09:00
k-nasa
2dee289750
Add FlatMap struct
2019-10-18 10:43:21 +09:00
k-nasa
bb1416420d
feat: Add Stream trait for FlattenCompat
2019-10-18 10:34:53 +09:00
Stjepan Glavina
8bef2e9e95
Don't flush files if they weren't written to
2019-10-17 21:28:38 +02:00
Stjepan Glavina
ec23632f3e
Cleanup: replace cfg-if with our macros ( #361 )
...
* Cleanup: replace cfg-if with our macros
* Prefix macros with cfg_
* Remove #[macro_export] from internal macros
2019-10-17 19:17:49 +02:00
k-nasa
ec98b41c85
feat: Add FlattenCompat struct
2019-10-17 23:56:01 +09:00
Stjepan Glavina
46f0fb1c64
Make sure each invocation of block_on uses its own Parker ( #358 )
2019-10-17 11:52:42 +02:00
k-nasa
f2bf01223c
$cargo fmt
2019-10-17 16:34:39 +09:00
k-nasa
70e8476264
fix StdinLock doc test
2019-10-17 16:32:14 +09:00
k-nasa
a5a00d7b14
feat: Add StdinLock struct
2019-10-17 16:29:23 +09:00
k-nasa
b58bd8d725
Merge branch 'add_stream_timeout' of https://github.com/k-nasa/async-std into add_stream_timeout
2019-10-16 23:08:23 +09:00
k-nasa
0a4073449b
doc: Add Stream::Timeout doc
2019-10-16 22:56:48 +09:00
k-nasa
c3f6f969c5
fix: Rename TimeoutStream to Timeout
2019-10-16 22:56:17 +09:00
k-nasa
53fa132d13
fix type Declaration
2019-10-16 22:45:18 +09:00
k-nasa
9d55fff81d
fix export FutureExt
2019-10-16 22:38:28 +09:00
nasa
f1ed034600
Update src/stream/stream/mod.rs
...
Co-Authored-By: Yoshua Wuyts <yoshuawuyts+github@gmail.com>
2019-10-16 22:21:32 +09:00
Yoshua Wuyts
9ff0750d4d
Merge pull request #353 from async-rs/fix-printing
...
fix print macros
2019-10-16 15:07:33 +02:00
Yoshua Wuyts
4d34a15363
fix macros, take II
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-10-16 14:35:10 +02:00
Yoshua Wuyts
822e4bc220
Merge branch 'master' into fs-stream-repeat-with
2019-10-16 14:26:20 +02:00
Yoshua Wuyts
6e0905d3ca
correctly mark stream::Merge as unstable ( #352 )
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-10-16 14:13:35 +02:00
k-nasa
10f32ca817
Fix TimeoutError
2019-10-16 20:21:45 +09:00
Johannes Weissmann
aaa1b6ca39
add Stream::last ( #347 )
...
* add stream::LastFuture (not compiling)
Struggling with the associated type, pinning and how to move/copy
LastFuture.last.
* fix type signature -> still cannot assign
still problems assigning the new value to self.last
* remove unused bound
* add doctest
* unpin LastFuture.last
* RustFmt
* add static lifetime
* remove redundant lifetime
2019-10-16 13:14:54 +02:00
k-nasa
358d2bc038
Add import crate
2019-10-16 19:57:03 +09:00
Stjepan Glavina
add6863185
Fix typos
2019-10-16 12:24:18 +02:00
k-nasa
b251fc999a
Move delay method to FutureExt::delay
2019-10-16 19:18:05 +09:00
Yoshua Wuyts
faff1f7370
task docs ( #346 )
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-10-16 10:28:14 +02:00
k-nasa
054f4fac74
feat: Add future::delay
2019-10-16 16:53:43 +09:00
k-nasa
7a87dea085
feat: Add Stream::timeout
2019-10-16 15:31:40 +09:00
k-nasa
f00d32ee7d
Add TimeoutStream struct
2019-10-16 15:31:40 +09:00
Yoshua Wuyts
e986e7ba66
Merge pull request #345 from async-rs/io-docs
...
Io docs
2019-10-16 02:53:38 +02:00
Wouter Geraedts
6b00e5e66c
Implemented StreamExt::try_fold ( #344 )
2019-10-16 02:32:27 +02:00
assemblaj
4b96ea1273
Adds Stream::cmp ( #273 )
...
* Adds cmp
* Fixes formatting
* cleans up examples
* attempts to fix rustdoc issue
* formats with cargo fmt
* Adds proper trait bounds for cmp
2019-10-16 02:23:41 +02:00
Yoshua Wuyts
d250eee556
port the std::io docs to async_std::io
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-10-16 02:15:20 +02:00
Yoshua Wuyts
9f8fa45dc7
io docs
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-10-16 02:03:26 +02:00
assemblaj
a7041be6f2
Adds Stream:ge ( #285 )
...
* Adds partial_cmp.rs file and partial_cmp signature to mod.rs
* adds tests that compare streams of same length
* Adds Stream::ge
* cargo fmt
* fixes rustdoc error
2019-10-16 01:24:27 +02:00
assemblaj
5f7238eec6
[Draft PR] Adds Stream::gt ( #304 )
...
* [Draft PR] Adds Stream::gt
* Applies cargo format and fixes incorrect comment
* cargo fmt
* fixes rustdoc related issues
2019-10-16 01:11:48 +02:00
assemblaj
f0f279ec04
Adds Stream::le ( #336 )
2019-10-16 00:46:06 +02:00
assemblaj
a8dc2c6f9b
Adds Stream::lt ( #337 )
2019-10-16 00:32:54 +02:00
Yoshua Wuyts
24cdb2d489
add stream::{Sum,Product} ( #343 )
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-10-16 00:31:49 +02:00
Yoshua Wuyts
00d936488b
stabilize future::timeout ( #335 )
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-10-15 16:33:23 +02:00