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 |
|
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 |
|
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 |
|
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 |
|
yjhmelody
|
879af6dc85
|
Add Stream max
|
2019-11-13 10:50:09 +08: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 |
|
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 |
|
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 |
|
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 |
|
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
|
548733e5d5
|
Cleanup stream traits (#487)
* Cleanup stream traits
* Fix docs
|
2019-11-09 11:22:09 +01:00 |
|
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 |
|
Stjepan Glavina
|
ab2f64cd84
|
Mark extend() as unstable
|
2019-11-08 02:38:49 +01: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 |
|
Yoshua Wuyts
|
d0f1996759
|
Merge pull request #388 from felipesere/cycle
Implement stream::cycle(..)
|
2019-11-07 13:14:43 +01:00 |
|
Yoshua Wuyts
|
8a0e29473a
|
Merge pull request #446 from yjhmelody/stream-cloned
Add Stream cloned
|
2019-11-07 13:13:20 +01:00 |
|
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 |
|
Gabriel Majeri
|
d502453057
|
Remove doc Stream impl for VecDeque (#461)
|
2019-11-06 08:35:31 +00:00 |
|
Stjepan Glavina
|
a757cc02dc
|
Expose extension traits in preludes
|
2019-11-06 00:21:32 +01:00 |
|
Stjepan Glavina
|
1707638ebb
|
Update mod.rs
|
2019-11-05 17:09:32 +00: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 |
|
yjh
|
e85bbe68e6
|
Merge branch 'master' into stream-cloned
|
2019-11-04 22:30:46 +08:00 |
|
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 |
|
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 |
|
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 |
|
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 |
|