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
c413e717da
Merge pull request #429 from markhildreth/tcp_smoke_tests
...
Added TCP smoke tests against std Listener and Stream
2019-11-02 02:30:42 +01: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
Sheyne Anderson
1a51ca424a
Fix typo in tutorial in book ( #412 )
2019-11-01 20:17:46 +01:00
k-nasa
81873ae5f3
fix
2019-11-02 01:27:27 +09:00
Florian Gilcher
d5fd035956
Small example for a TCP server that both handles IP v4 and v6 ( #418 )
...
* Add a small example for listening to both ipv4 and ipv6
Presenting stream merge on Incoming.
* Change stable checks workflow to not cover examples, but tests
2019-11-01 16:10:37 +01:00
Yoshua Wuyts
e17a6703c8
Merge pull request #415 from k-nasa/stream_from_iter
...
Add stream::from_iter
2019-11-01 16:05:58 +01: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
Florian Gilcher
57670dd9d7
Merge pull request #433 from JohnTitor/remove-deprecated-action
...
Remove deprecated action
2019-11-01 09:30:25 +01:00
Paulo
dcd7c55cef
Put everything behind a 'stable' feature
2019-11-01 00:41:38 -03:00
Yuki Okushi
277fd521bc
Remove deprecated action
2019-11-01 11:30:51 +09: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
c1e8517959
Merge pull request #414 from k-nasa/fix_github_actions
...
Add only rustfmt on Checking fmt and docs actions
2019-11-01 02:06:04 +01: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
Yoshua Wuyts
65dcaf4464
Merge pull request #426 from yjhmelody/stream-eq
...
Add stream eq
2019-11-01 00:28:27 +01:00
zhangguyu
07d21e5eb3
change trait bounds
2019-10-31 23:30:11 +08:00
Mark Hildreth
c6c2bfa456
Added TCP smoke tests against std Listener and Stream
2019-10-31 11:24:23 -04: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
Yoshua Wuyts
cc949f48ea
Merge pull request #420 from JayatiGoyal/master
...
correction of a typo
2019-10-31 03:42:27 +01:00
JayatiGoyal
5fee91c050
corrected a typo
2019-10-31 00:36:42 +05:30
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
3620b2b6ab
fix: Add only rustfmt on Checking fmt and docs actions
2019-10-30 09:17:12 +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