Yoshua Wuyts
a064a5b13e
Merge pull request #459 from stjepang/expose-ext-traits
...
Expose extension traits in preludes
2019-11-07 02:48:50 +01:00
Stjepan Glavina
c34e0f8a35
Update futures to 0.3 ( #463 )
...
* Update futures to 0.3
* Fix a search-and-replace error
* Fix imports in tests
* Fix an import
2019-11-06 20:20:27 +00:00
Stjepan Glavina
93b01e36ed
Clippy fixes ( #462 )
2019-11-06 19:29:17 +00:00
Gabriel Majeri
d502453057
Remove doc Stream
impl for VecDeque
( #461 )
2019-11-06 08:35:31 +00:00
Yoshua Wuyts
3144e217ae
Merge pull request #458 from async-rs/rework-intro
...
rework lib.rs docs
2019-11-06 01:19:16 +01:00
Stjepan Glavina
c3254d78d9
Fix a re-rexport
2019-11-06 01:17:35 +01:00
Yoshua Wuyts
f4fb8a3534
change one line
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-11-06 01:04:46 +01:00
Yoshua Wuyts
1c87e97e9c
Apply suggestions from code review
...
Co-Authored-By: Stjepan Glavina <stjepang@gmail.com>
2019-11-06 01:02:39 +01:00
Stjepan Glavina
a757cc02dc
Expose extension traits in preludes
2019-11-06 00:21:32 +01:00
Yoshua Wuyts
ae8b051892
rework lib.rs docs
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-11-05 21:00:12 +01:00
Stjepan Glavina
1707638ebb
Update mod.rs
2019-11-05 17:09:32 +00:00
Yoshua Wuyts
84fa4ca068
Merge pull request #456 from stjepang/doc-fixes-links
...
Fix some links in docs
2019-11-05 18:06:03 +01:00
Stjepan Glavina
43bb59cd02
Fix some links in docs
2019-11-05 17:49:05 +01:00
yjh
5179f30d2d
use async_std::stream
2019-11-05 21:15:33 +08:00
yjh
a35602f375
Update mod.rs
2019-11-05 21:08:56 +08:00
Yoshua Wuyts
e14cc2a30d
Merge pull request #452 from stjepang/fix-deadlocks
...
Fix a deadlock in channel
2019-11-05 11:27:00 +01:00
Stjepan Glavina
6d421de992
Fix another clippy warning
2019-11-05 10:16:00 +00:00
Stjepan Glavina
5874392397
Fix a clippy warning
2019-11-04 18:48:49 +01:00
Stjepan Glavina
e9edadffc7
Fix a deadlock in channel
2019-11-04 18:15:12 +01:00
Yoshua Wuyts
282ae064fe
Merge pull request #449 from async-rs/strip-vecdeque
...
remove remaining instances of VecDeque stream
2019-11-04 17:46:19 +01:00
yjh
e85bbe68e6
Merge branch 'master' into stream-cloned
2019-11-04 22:30:46 +08:00
Abhishek C. Sharma
d7afcada76
Fixed ambiguous associated types
2019-11-04 15:19:47 +05:30
Abhishek C. Sharma
e36172e808
Merge remote-tracking branch 'upstream/master'
2019-11-04 14:03:29 +05:30
Abhishek C. Sharma
a3e68704bc
Wrap state enum in public struct
2019-11-04 13:58:14 +05:30
yjh
8bef812e78
Update src/stream/stream/cloned.rs
...
Co-Authored-By: nasa <htilcs1115@gmail.com>
2019-11-04 11:49:50 +08:00
yjh
bf0cd5987a
Update src/stream/stream/cloned.rs
...
Co-Authored-By: nasa <htilcs1115@gmail.com>
2019-11-04 11:49:43 +08:00
Stjepan Glavina
20cdf73bb0
Simplify RwLock using WakerSet ( #440 )
2019-11-04 02:40:55 +01:00
Yoshua Wuyts
ed1cb49807
remove remaining instances of VecDeque stream
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-11-04 01:57:53 +01:00
Stjepan Glavina
78614c6c1d
Clarify blocking in channel docs ( #448 )
2019-11-03 22:19:04 +01:00
nasa
ddbbbfc32a
Replace VecDeque
with stream::from_iter
in examples ( #447 )
2019-11-03 13:40:51 +01:00
yjhmelody
4942dc7f9f
Add Stream cloned
2019-11-03 19:19:52 +08:00
Abhishek C. Sharma
e0910be8fb
Added Future::flatten
2019-11-03 11:34:49 +05:30
Felipe Sere
57a6516e63
Make bounds on Stream impl simpler
2019-11-02 22:24:12 -05:00
Felipe Sere
fbd5bd867d
Revert "Only one generic type needed"
...
This reverts commit e9b9284863a614b852c22d58205cb983fc26682a.
2019-11-02 22:24:12 -05:00
Felipe Sere
9ee804f9ed
Only one generic type needed
2019-11-02 22:24:12 -05:00
Felipe Seré
eaa56580e3
Update src/stream/stream/mod.rs
...
Co-Authored-By: Yoshua Wuyts <yoshuawuyts+github@gmail.com>
2019-11-02 22:24:12 -05:00
Felipe Sere
0186124aef
Simpler impl
2019-11-02 22:24:12 -05:00
Felipe Sere
197253aa73
Run fmt
2019-11-02 22:24:12 -05:00
Felipe Sere
19381fa590
One clippy warning
2019-11-02 22:23:46 -05:00
Felipe Sere
ed5b095c73
Run fmt
2019-11-02 22:23:46 -05:00
Felipe Sere
5aadc5e4e9
Make cycle a function on the stream type
2019-11-02 22:23:46 -05:00
Felipe Sere
b979773505
Follow clippys advice
2019-11-02 22:23:46 -05:00
Felipe Sere
fd09e2f248
Run fmt
2019-11-02 22:23:46 -05:00
Felipe Sere
171cc82aed
Replace copy with clone bound
2019-11-02 22:23:46 -05:00
Felipe Sere
83ff11ff4c
Switch cycle to stream
2019-11-02 22:23:46 -05:00
Felipe Sere
e1ba87e7c1
Add slightly better docs
2019-11-02 22:23:46 -05:00
Felipe Sere
8126bb1882
use the module operator to calculate next index
2019-11-02 22:23:46 -05:00
Felipe Sere
486f9a964c
Cycle over a known set of values.
2019-11-02 22:23:46 -05:00
Felipe Sere
a096d5ec2d
stub out an example
2019-11-02 22:23:00 -05:00
Felipe Sere
dea1b67670
Skeleton cycle
2019-11-02 22:23:00 -05:00
Aleksey Kladov
fa91d7f856
Stream::merge does not end prematurely if one stream is delayed ( #437 )
...
* Stream::merge does not end prematurely if one stream is delayed
* `cargo test` without features works
* Stream::merge works correctly for unfused streams
2019-11-03 00:11:59 +01:00
Yoshua Wuyts
9a4f4c591c
Merge pull request #441 from async-rs/stdio-lock-unstable
...
mark stdio-lock structs as unstable
2019-11-03 00:05:11 +01:00
Yoshua Wuyts
6f9436e575
mark stdio-lock structs as unstable
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-11-02 23:54:27 +01:00
Yoshua Wuyts
735fa6954e
Replace select!/try_select! with Future::{race,try_race} ( #405 )
...
* init Future::select
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
* implement Future::select
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
* try_select
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
* fixes
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
* works
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
* pass clippy
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
* please clippy
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
* implement feedback from stjepan
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
* rename select to race
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
* fmt
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-11-02 23:00:03 +01:00
yjh
3a2e6d5b92
add max_by_key ( #408 )
...
* add max_by_key
* fix conflict
* fmt code
2019-11-02 15:59:15 +01:00
Zhang Guyu
5fb9d3e980
add Stream::copied ( #442 )
2019-11-02 15:58:30 +01:00
Yoshua Wuyts
4c63392a85
Merge pull request #334 from k-nasa/add_stdin_lock
...
Locking for stdin
2019-11-02 14:18:36 +01:00
k-nasa
3dcad984b4
fix: To unstable feature
2019-11-02 12:34:53 +09:00
Yoshua Wuyts
911ebada0b
Merge pull request #434 from paulocsanz/master
...
Put everything behind a 'stable' feature to avoid future breaking changes
2019-11-02 01:33:52 +01:00
Aleksey Kladov
ec1a6ea3e8
Fix typo ( #439 )
2019-11-01 22:08:19 +01:00
Tyler Neely
5adc608791
Spawn several threads when we fail to enqueue work in the blocki… ( #181 )
...
* Rebase onto master
* Switch to unbounded channels
2019-11-01 21:53:13 +01:00
k-nasa
81873ae5f3
fix
2019-11-02 01:27:27 +09:00
Paulo
8e991bcd3a
Fix typo
2019-11-01 10:59:38 -03:00
Paulo
2e66c38453
Simplify default feature
2019-11-01 10:58:51 -03:00
k-nasa
0661f774c2
Merge branch 'master' into add_stdin_lock
2019-11-01 21:20:38 +09:00
k-nasa
2f3c867d44
Merge branch 'master' into stream_from_iter
2019-11-01 21:19:53 +09:00
k-nasa
063798ce49
Add doc
2019-11-01 21:18:43 +09:00
Yoshua Wuyts
a3b742188d
fix doc tests ( #431 )
...
* fix doc tests
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
* cargo fmt
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-11-01 12:54:43 +01:00
Paulo
dcd7c55cef
Put everything behind a 'stable' feature
2019-11-01 00:41:38 -03:00
Stjepan Glavina
87de4e1598
Add utility type WakerSet to the sync module ( #390 )
...
* Add utility type Registry to the sync module
* Remove unused import
* Split unregister into complete and cancel
* Refactoring and renaming
* Split remove() into complete() and cancel()
* Rename to WakerSet
* Ignore clippy warning
* Ignore another clippy warning
* Use stronger SeqCst ordering
2019-11-01 02:45:50 +01:00
Stjepan Glavina
3dd59d7056
Refactor the task module ( #421 )
...
* Refactor the task module
* Fix clippy warning
* Simplify task-local entries
* Reduce the amount of future wrapping
* Cleanup
* Simplify stealing
2019-11-01 02:45:33 +01:00
k-nasa
caa23381f0
fix clippy warning
2019-11-01 10:41:21 +09:00
k-nasa
eeb44c86e9
fix
2019-11-01 10:34:28 +09:00
k-nasa
f8b8c9debe
Merge branch 'master' into add_stdin_lock
2019-11-01 10:10:49 +09:00
Yoshua Wuyts
cc75b65b8c
Merge pull request #409 from yjhmelody/stream-min
...
Add Stream min
2019-11-01 00:41:54 +01:00
Yoshua Wuyts
f102588df5
Merge pull request #428 from zhangguyu6/stream-position
...
Add stream position
2019-11-01 00:33:39 +01:00
Yoshua Wuyts
3e0fe742f6
Merge pull request #427 from yjhmelody/stream-ne
...
Add stream ne
2019-11-01 00:29:21 +01:00
zhangguyu
07d21e5eb3
change trait bounds
2019-10-31 23:30:11 +08:00
zhangguyu
48c82a9668
Add stream position
2019-10-31 22:33:17 +08:00
yjhmelody
1ab3d901e4
fmt code
2019-10-31 21:17:07 +08:00
yjhmelody
204da33391
fmt code
2019-10-31 21:16:13 +08:00
yjhmelody
17db7ffcd3
Add stream ne
2019-10-31 20:18:53 +08:00
yjhmelody
f5efaaa7ba
Add stream eq
2019-10-31 14:44:19 +08:00
Wu Yu Wei
ff6a44fcd5
Use once_cell instead of lazy_static ( #416 )
...
`once_cell` provides a neat way of initializing lazy singletons without
macro. This PR use `sync::Lazy` to streamline same pattern proposed in
related rust RFC.
Resolve #406
2019-10-30 11:23:08 +00:00
k-nasa
40c4e1a29d
feat: Add stream::from_iter
2019-10-30 10:39:05 +09:00
k-nasa
2c91b30ee8
feat: Add Read and Write trait to Lock struct
2019-10-29 23:12:32 +09:00
yjhmelody
021862dcc8
fix min
2019-10-29 21:49:30 +08:00
yjhmelody
b942d0a405
add stream-min
2019-10-29 21:44:56 +08:00
Yoshua Wuyts
2b1c6f04ea
Merge pull request #384 from yjhmelody/stream-max_by
...
add stream::max_by method
2019-10-29 11:19:50 +01:00
Yoshua Wuyts
5ff4ef8dd4
Merge pull request #385 from yjhmelody/stream-min_by_key
...
add stream::min_by_key method
2019-10-29 11:18:34 +01:00
Yoshua Wuyts
f311e3de9f
Merge pull request #397 from async-rs/sync-docs
...
add mod level docs for sync
2019-10-29 11:07:56 +01:00
Yoshua Wuyts
3a06a1211b
Add feedback from review
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-10-29 10:56:33 +01:00
Yoshua Wuyts
526c4da21a
Merge pull request #395 from async-rs/stream-docs
...
add stream mod docs
2019-10-29 10:50:26 +01:00
Yoshua Wuyts
997e811c58
Merge pull request #402 from async-rs/fuse-docs
...
update Stream::fuse docs
2019-10-29 10:49:43 +01:00
Yoshua Wuyts
11d0577407
Merge pull request #396 from async-rs/net-docs
...
standardize net docs
2019-10-29 10:30:45 +01:00
Yoshua Wuyts
eb081b1948
Apply suggestions from code review
...
Co-Authored-By: Florian Gilcher <florian.gilcher@ferrous-systems.com>
2019-10-29 10:23:54 +01:00
k-nasa
35cb11e398
Merge branch 'master' into add_stdin_lock
2019-10-29 16:01:58 +09:00
Yoshua Wuyts
1175a37c47
Merge pull request #367 from k-nasa/add_stream_flatten
...
Add Stream::flatten and Stream::flat_map
2019-10-29 02:22:04 +01:00
k-nasa
1554b04407
$cargo fmt
2019-10-29 10:12:22 +09:00
k-nasa
1545d24e50
Merge branch 'master' into add_future_delay
2019-10-29 10:09:09 +09:00