Pascal Hertleif
56538ebd91
Improve verbose errors for socket addresses
...
Moves the point of adding error context to the net::addr module so that
we have access to the raw address input and can include it in the error
message.
5 years ago
Pascal Hertleif
aa7d1c27a4
Verbose errors: Apply suggestions
...
Co-Authored-By: Yoshua Wuyts <yoshuawuyts+github@gmail.com>
5 years ago
Yoshua Wuyts
850b8ae9d0
Merge pull request #543 from k-nasa/stream_unzip
...
Add stream unzip
5 years ago
Miguel Pérez García
c1f7be5d42
Adding timeout extension method to Future trait
5 years ago
Yoshua Wuyts
c9a2e74789
Merge pull request #523 from async-rs/update-lib-example
...
polish lib.rs examples
5 years ago
Yoshua Wuyts
cffacf7fa3
feedback from review
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
5 years ago
Yoshua Wuyts
02e1d7e5ea
Merge pull request #574 from stjepang/ignore-unread-errors
...
Ignore seek errors in poll_unread
5 years ago
laizy
ec5415358f
simplify AllFuture and AnyFuture ( #572 )
5 years ago
Stjepan Glavina
16edec3464
Ignore seek errors in poll_unread
5 years ago
Pascal Hertleif
e01f07d72a
Add context to more errors
...
cc #569
5 years ago
Yoshua Wuyts
b3d30de4a1
mark windows fs APIs as "unstable" ( #567 )
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
5 years ago
nasa
d146d95a39
Update src/stream/stream/mod.rs
...
Co-Authored-By: Taiki Endo <te316e89@gmail.com>
5 years ago
Stjepan Glavina
5fba3a0928
Fix rng use in Stream::merge
5 years ago
Yoshua Wuyts
2ca03cabe6
Merge pull request #552 from hhggit/win_symlink
...
add os::windows::symlink_{dir,file}
5 years ago
hhggit
72ed4eb4fd
Update mod.rs
5 years ago
Yoshua Wuyts
77800ab3f9
Merge pull request #526 from yjhmelody/refactor-dir
...
refactor io dir to be same with std and export IntoInnerError
5 years ago
Yoshua Wuyts
8ea920c9f0
Merge pull request #546 from k-nasa/fix_clippy
...
Fix clippy warn
5 years ago
Yoshua Wuyts
d1189f9974
Merge pull request #548 from yjhmelody/fix-stream-code-style
...
fix stream code style
5 years ago
Yoshua Wuyts
3f8ec5a007
Merge pull request #551 from killercup/feature/verbose-errors
...
verbose errors feature
5 years ago
nasa
3bc4d293dd
Merge pull request #503 from Razican/random_merge
...
Randomize Stream::merge to improve the throughput.
5 years ago
razican
72ca2c1a24
Improved the code with some minor changes
5 years ago
k-nasa
b5e66c4f93
refactor: Refactoring option type handling
5 years ago
k-nasa
080875edc9
update min_by_key doc
5 years ago
k-nasa
ca71ad073b
fix stream min_by_key mistake
5 years ago
k-nasa
667bbc1019
doc: update doc test
5 years ago
k-nasa
64b2e10b93
fix max_by_key mistake
5 years ago
k-nasa
314a75da28
fix typo
5 years ago
Pascal Hertleif
c704643296
Remove verbose-errors cargo feature
5 years ago
Yoshua Wuyts
c6622475b2
Merge pull request #555 from stjepang/optimize-cargo-check
...
Macro optimization to reduce compilation times
5 years ago
Stjepan Glavina
65afd41a33
Once doesn't need Unpin bound ( #554 )
5 years ago
Stjepan Glavina
d3e7f32a30
Macro optimization to reduce compilation times
5 years ago
Razican
f6829859fe
Fixed deduplication of code
5 years ago
hhggit
2c9b558d14
add os::windows::symlink_{dir,file}
5 years ago
Pascal Hertleif
99ddfb3f93
Wrap code more clearly in cfg blocks
5 years ago
Pascal Hertleif
8ce3e78952
verbose errors feature
...
This adds a new "verbose-errors" feature flag to async-std that enables
wrapping certain errors in structures with more context. As an example,
we use it in `fs::File::{open,create}` to add the given path to the
error message (something that is lacking in std to annoyance of many).
5 years ago
yjhmelody
223fcc30ee
fix code style for stream
5 years ago
k-nasa
76975a4441
Merge branch 'master' into fix_clippy
5 years ago
Yoshua Wuyts
355e2eded8
Merge pull request #547 from async-rs/unpin-successors-test
...
remove pin_mut from successors test
5 years ago
Yoshua Wuyts
ee23ba6e94
Merge pull request #545 from yjhmelody/stream-partition-patch
...
use `as_mut` for stream-partition
5 years ago
Yoshua Wuyts
d68dc659b2
remove pin_mut from successors test
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
5 years ago
Yoshua Wuyts
b5c3fb8bb5
Merge pull request #363 from felipesere/async-successors
...
Async successors
5 years ago
k-nasa
7d616c695d
refactor: change to as_mut
5 years ago
yjhmelody
a69b3a8a9e
use `as_mut` for stream-partition
5 years ago
k-nasa
a05b6a3810
fix: mutable ref
5 years ago
k-nasa
6cbf48f12d
fix clippy warn
5 years ago
k-nasa
91ee4c7b9f
doc: Add stream unzip doc
5 years ago
k-nasa
603b3c5085
add: Add stream unzip
5 years ago
Yoshua Wuyts
693a7257b8
Merge pull request #538 from k-nasa/stream_by_ref
...
Add stream by_ref
5 years ago
k-nasa
df92c63337
fix: Add unstable features
5 years ago
k-nasa
31cf932d80
wip: Add stream unzip
5 years ago
Yoshua Wuyts
3c6d41ccb4
Merge pull request #541 from yjhmelody/stream-partition
...
add stream-partition
5 years ago
yjh
74caed2d4b
Update src/io/seek/mod.rs
...
Co-Authored-By: Taiki Endo <te316e89@gmail.com>
5 years ago
yjhmelody
76ec9c4563
update doc url
5 years ago
yjhmelody
d76b32e6d4
make it unstable and fix trait bound
5 years ago
yjhmelody
11268a80fb
add stream-partition
5 years ago
Yoshua Wuyts
c4ba11ff95
Merge pull request #535 from async-rs/docs-sender-recv
...
backlink channel types
5 years ago
k-nasa
de67bf0fd4
feat: Add stream by_ref
5 years ago
Yoshua Wuyts
30ff7b09b6
mark Stream::count as unstable
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
5 years ago
Yoshua Wuyts
c58747b5fc
Merge pull request #368 from starsheriff/stream_count
...
add stream::count
5 years ago
Yoshua Wuyts
31f129ebe7
backlink channel types
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
5 years ago
Felipe Sere
64216b8e6b
Take a normal closure, not an async one
5 years ago
Felipe Sere
786a52a09d
Slight miss-merge
5 years ago
Felipe Sere
f14b37ff17
Remoe the T: Copy bound on the item
5 years ago
Felipe Sere
7677e9a3df
Make the closure take a borrow to the value
5 years ago
Felipe Sere
bfb42b432e
Rearrange docs to match 'repeat'
5 years ago
Felipe Sere
4c09cdbeac
Mark successors as unstable
5 years ago
Felipe Sere
243cdd7ff1
Slight miss-merge
5 years ago
Felipe Sere
a257b7018c
Rename some variables to match iter
5 years ago
Felipe Sere
af928163e4
Got further! Thx Josh!
5 years ago
Felipe Sere
8d97e0f974
Only produes empty value if next is ever a 'None'
5 years ago
Felipe Sere
266754897e
Rename the module to 'successors'
5 years ago
Felipe Sere
554d5cfbc1
Slight renamings
5 years ago
Felipe Sere
8b662b659d
Run rustfmt
5 years ago
Felipe Sere
95a3e53fcd
Only use the Option of the future to decide to construct a new one
5 years ago
Felipe Sere
02b261de10
It compiles! Store the future and poll it instead of creating multiple new ones
5 years ago
Felipe Sere
fe3c9ef626
First attempt at successor
5 years ago
Yoshua Wuyts
4e1d79adb1
Merge pull request #524 from yjhmelody/stream-max
...
Add Stream max
5 years ago
Yoshua Wuyts
338273eb18
Merge pull request #356 from Wassasin/342-stream-throttle
...
Implemented StreamExt::throttle
5 years ago
Wouter Geraedts
dda65cbff0
Start throttle measurement before initialisation
5 years ago
Johannes Weissmann
9ebe41f2d6
Update src/stream/stream/mod.rs
...
Co-Authored-By: nasa <htilcs1115@gmail.com>
5 years ago
Wouter Geraedts
90c67c223a
Decreased throttle test time to original values; only test lower bound
5 years ago
Stjepan Glavina
0c2282ffdc
Optimization: a slot for the next task to run ( #529 )
...
* Optimization: a slot for the next task to run
* Only notify workers when a task is pushed into a queue
5 years ago
yjhmelody
5adb112a00
export IntoInnerError for io
5 years ago
yjhmelody
9d634cb2a7
refactor io dir to be same with std
5 years ago
yjhmelody
879af6dc85
Add Stream max
5 years ago
Yoshua Wuyts
2dfdc1c482
polish lib.rs examples
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
5 years ago
Grzegorz Gierlach
e442eba625
Cleaning up stream pinning.
5 years ago
Grzegorz Gierlach
f0875d2dca
Cleaning up stream pinning.
5 years ago
Devashish Dixit
f611ceccc8
Run cargo fmt for doc comments ( #515 )
5 years ago
Wouter Geraedts
c5b3a98e5b
Increased throttle test to 10x time
5 years ago
Wouter Geraedts
4ab7b213de
Updated example to be consistent; added timing measurements to throttle
5 years ago
Wouter Geraedts
6990c1403f
Reimplemented throttle to never drop Delay, added boolean flag
5 years ago
Wouter Geraedts
77a1849303
Merge branch '342-stream-throttle' of github.com:Wassasin/async-std into 342-stream-throttle
5 years ago
Wouter Geraedts
a722de1a10
Merge remote-tracking branch 'upstream/master' into 342-stream-throttle
5 years ago
Wouter Geraedts
88cbf2c119
Change throttle test to run in milliseconds
5 years ago
Wouter Geraedts
6f6d5e9d20
Updated throttle fn comments.
...
Co-Authored-By: Yoshua Wuyts <yoshuawuyts+github@gmail.com>
5 years ago
Wouter Geraedts
7c7386735e
Wrap around throttle comment
...
Co-Authored-By: Yoshua Wuyts <yoshuawuyts+github@gmail.com>
5 years ago
Yoshua Wuyts
0d5c7a217f
stabilize task::yield_now
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
5 years ago
Stjepan Glavina
1a50ffd144
Delete unused import
5 years ago
Stjepan Glavina
21c5c48cb6
Lower the timeout to 1 second
5 years ago
Stjepan Glavina
6677d52c2d
Improve thread creating algorithm in spawn_blocking
5 years ago
Johannes Weissmann
37922408e5
use pin_project
5 years ago
Johannes Weissmann
7d2282dbd2
fix merge conflict
5 years ago
Johannes Weissmann
60f822bee5
Merge branch 'master' into stream_count
5 years ago
Yoshua Wuyts
4aa9928ece
v1.0.0
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
5 years ago
Stjepan Glavina
5438258cee
Remove unused import
5 years ago
Wouter Geraedts
ef958f0408
Use pin_project_lite instead for throttle
5 years ago
Stjepan Glavina
dc5d143c16
Merge branch 'master' into cleanup-stream
5 years ago
Stjepan Glavina
c2f750d288
Cleanup stream module
5 years ago
Wouter Geraedts
139a34b685
Make throttle an unstable feature
5 years ago
Wouter Geraedts
b591fc68bd
Changed semantics of throttle to non-dropping variant with backpressure
5 years ago
razican
5d558ca213
Fixed test, order is no longer guaranteed
5 years ago
razican
e48e463736
Duplicating code due to strange Rust error.
5 years ago
razican
0c37d4af10
Anonymous function to avoid type issues
5 years ago
Stjepan Glavina
352f18bc2a
Use async_std::sync::Arc in examples ( #501 )
5 years ago
razican
79bbf4938d
Randomize Stream::merge to improve the throughput. Implements #490 .
5 years ago
Wouter Geraedts
14d7d3bf9c
Merge remote-tracking branch 'upstream/master' into 342-stream-throttle
5 years ago
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
5 years ago
Stjepan Glavina
122e87364b
Remove cache padding in channels
5 years ago
Stjepan Glavina
d4f38e783f
Cleanup future module
5 years ago
Yoshua Wuyts
96d3560742
remove future::*join macros ( #492 )
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
5 years ago
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
5 years ago
Stjepan Glavina
9e185f1c3e
Unstable feature: copy takes arguments by value ( #471 )
...
* Unstable feature: copy takes arguments by value
* Fix feature flags
5 years ago
Yoshua Wuyts
89d611628a
Merge pull request #483 from ryan-scott-dev/rscott/pathbuf_fromiter
...
Add FromIterator and Extend trait implementations for PathBuf
5 years ago
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()
5 years ago
Yoshua Wuyts
037119c0c0
Merge pull request #478 from portgasd666/master
...
Add Future::join and Future::try_join
5 years ago
Stjepan Glavina
548733e5d5
Cleanup stream traits ( #487 )
...
* Cleanup stream traits
* Fix docs
5 years ago
Abhishek C. Sharma
f04b6f6fe9
Change module level docs for future to refer to join and try_join functions instead of macros
5 years ago
Friedel Ziegelmayer
4a78f731b7
fix: stream::take_while ( #485 )
...
When the predicate is false, the stream should be ended.
5 years ago
Ryan Scott
8f3366072f
Add FromIterator and Extend trait implementations for PathBuf
5 years ago
laizy
fb19ebde17
add `Sync` constraint for RwLock to prevent memory unsafety ( #479 )
5 years ago
Abhishek C. Sharma
b14282457c
Add Future::join and Future::try_join
5 years ago
Stjepan Glavina
ab2f64cd84
Mark extend() as unstable
5 years ago
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
5 years ago
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
5 years ago
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>
5 years ago
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
5 years ago
Yoshua Wuyts
266e6326eb
document path submodule ( #467 )
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
5 years ago
Stjepan Glavina
f8e82564d9
Rename stream_extend to extend ( #464 )
...
* Rename stream_extend to extend
* Remove Extend from prelude
* Add stream::extend()
5 years ago
Abhishek C Sharma
eb1ef3f4e4
Minor documentation fix for race and try_race ( #473 )
5 years ago
Yoshua Wuyts
d0f1996759
Merge pull request #388 from felipesere/cycle
...
Implement stream::cycle(..)
5 years ago
Yoshua Wuyts
8a0e29473a
Merge pull request #446 from yjhmelody/stream-cloned
...
Add Stream cloned
5 years ago
Yoshua Wuyts
929027796e
hide future::Flatten
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
5 years ago
Yoshua Wuyts
9a8805678e
Merge pull request #443 from portgasd666/master
...
Added Future::flatten
5 years ago
Yoshua Wuyts
a064a5b13e
Merge pull request #459 from stjepang/expose-ext-traits
...
Expose extension traits in preludes
5 years ago
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
5 years ago
Stjepan Glavina
93b01e36ed
Clippy fixes ( #462 )
5 years ago
Gabriel Majeri
d502453057
Remove doc `Stream` impl for `VecDeque` ( #461 )
5 years ago
Yoshua Wuyts
3144e217ae
Merge pull request #458 from async-rs/rework-intro
...
rework lib.rs docs
5 years ago
Stjepan Glavina
c3254d78d9
Fix a re-rexport
5 years ago