Miguel Pérez García
eedf1d3367
Fixing docs
5 years ago
Miguel Pérez García
97b4901b75
Fixing tests
5 years ago
Miguel Pérez García
1eeb1019e9
Fixing example
5 years ago
Miguel Pérez García
980a1f7834
Correcting docs on function
5 years ago
nasa
d8befe24e8
Revert "upgrade log, remove kv-log-macro"
5 years ago
Florian Gilcher
c7cf1934db
Merge pull request #629 from async-rs/update-log
...
upgrade log, remove kv-log-macro
5 years ago
k-nasa
43f4f393af
fix missing export for the return value
5 years ago
Stjepan Glavina
ceba324bef
Fix feature flags
5 years ago
Stjepan Glavina
36d24cd0e1
New scheduler resilient to blocking
5 years ago
Yoshua Wuyts
61eb52cb36
Merge pull request #625 from nbdd0121/sync_unsized
...
Use ?Sized in Mutex and RwLock
5 years ago
Yoshua Wuyts
6f4dcad6a0
Merge pull request #630 from async-rs/fix-ci-2
...
fix ci
5 years ago
Yoshua Wuyts
60de8e1082
up time limits
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
5 years ago
Yoshua Wuyts
cac4e081cc
Merge pull request #628 from fenhl/patch-1
...
Make WriteFmtFuture must_use
5 years ago
Yoshua Wuyts
8ad1d23116
fix ci
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
5 years ago
Yoshua Wuyts
b7e55762d8
upgrade log, remove kv-log-macro
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
5 years ago
Yoshua Wuyts
c70552ead5
unpub double_ended_stream
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
5 years ago
Fenhl
07eb2c1280
Make WriteFmtFuture must_use
...
Fixes #627 . Thanks to @jebrosen for pointing out the location of the issue.
5 years ago
Gary Guo
732ef10f98
Make code compile
5 years ago
Gary Guo
499a44ab3b
Use ?Sized in Mutex and RwLock
5 years ago
Yoshua Wuyts
761029cd08
fix stream doc hiccup
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
5 years ago
Yoshua Wuyts
83a488b290
Merge pull request #597 from k-nasa/fix_doc_test
...
Fix failed doc test and enable doc test on CI
5 years ago
Yoshua Wuyts
96d6fc43d6
Merge pull request #618 from twittner/poll_close_shutdown
...
TcpStream: Shutdown write direction in poll_close.
5 years ago
Miguel Pérez García
8de9f9b8e1
Merge branch 'future-timeout' of https://github.com/miker1423/async-std into future-timeout
5 years ago
Felipe Sere
182fe6896f
No need for a custom impl for FromIter for DoubleEndedStream
5 years ago
Felipe Sere
b0038e11be
Only implement the DoubleEndedStream for once when the flag is on
5 years ago
Felipe Sere
8e5dedec34
Restructure package. No longer use a extension trait to match std.
...
Still outstanding: How do I hide the concrete structs from the trait?
5 years ago
Felipe Sere
41cf0f855b
Make Once a DoubleEndedStream
5 years ago
Felipe Sere
f9a4c35fd6
Silence warning about missing docs for the double_ended module
5 years ago
Felipe Sere
6e8236d0e1
Document from_iter for DoubleEndedStream
5 years ago
Felipe Sere
892c6008c2
Replace sample with a hidden from_iter implementation for double-ended-stream
5 years ago
Felipe Sere
abd360893c
Disable docs and Debug for unexposed structs
5 years ago
Felipe Sere
94893d2924
Move more of the documentation
5 years ago
Felipe Sere
02aa2f3d2a
Fix next_back
5 years ago
Felipe Sere
ee2f52f3ce
Add next_back
5 years ago
Felipe Sere
55194edbf7
Add try_rfold
5 years ago
Felipe Sere
c4b9a7f680
Add samples for some of the functions
5 years ago
Felipe Sere
aabfefd015
Add a sample implementation of a double ended stream
5 years ago
Felipe Sere
cc493df433
Sketch out rfold
5 years ago
Felipe Sere
78bafbb88f
Sketch outch rfind
5 years ago
Felipe Sere
d0ef48c753
Sketch out nth_back
5 years ago
Felipe Sere
fa288931c6
Skeleton for DoubleEndedStreamExt trait
5 years ago
Toralf Wittner
c90732a805
TcpStream: Shutdown write direction in poll_close.
...
Fixes #599 .
5 years ago
Yoshua Wuyts
a0f3b3b753
Remove unused macros ( #610 )
...
* replace async-macros with internals only
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
* clean up MaybeDone
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
* inline futures_core::ready
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
* remove big commented blob
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
5 years ago
Tomasz Miąsko
f06ab9fbc4
Remove mention of task stack size configuration ( #612 )
5 years ago
Miguel Pérez García
33e7c87dfc
Adding example to docs
5 years ago
Miguel Pérez García
c14c377974
Changing method signature
5 years ago
Miguel Pérez García
54fa559554
Changing scope of disclosure
5 years ago
Bryant Luk
fd86effb63
Change recv_from to recv in UdpSocket::recv doc
5 years ago
nasa
128a6bc6ce
Merge pull request #598 from povilasb/fix/docs
...
Fix a link in the docs
5 years ago
Yoshua Wuyts
d51a135015
Merge pull request #309 from async-rs/stream-delay
...
Stream::delay
5 years ago
Miguel Pérez García
1c2055fff0
Merge remote-tracking branch 'original/master' into future-timeout
5 years ago
Povilas Balciunas
81e3c41826
Fix a link in the docs
5 years ago
k-nasa
fb1fb6c903
test: Test the delay time
5 years ago
k-nasa
fe04cf26b6
test: fix stream::throttle doc test
5 years ago
k-nasa
556d7992ce
test: fix failed doc test
5 years ago
k-nasa
da965e9ba4
fix indent
5 years ago
k-nasa
9f7c1833dc
fix module
5 years ago
Yoshua Wuyts
68005661d9
fix Stream::throttle hot loop ( #584 )
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
5 years ago
nasa
794e331761
Refactor join type ( #577 )
...
* refactor: update future join type
* test: update future join test
* update future::try_join
5 years ago
k-nasa
32765ece41
test: Add stream::delay test code
5 years ago
k-nasa
635c592950
feat: Add stream::delay
5 years ago
k-nasa
3b055f364e
Merge branch 'master' into stream-delay
5 years ago
Yoshua Wuyts
46cafffc31
Merge pull request #571 from killercup/more-errors
...
Add context to more errors
5 years ago
boats
0f30ab8c0a
Fix the docs and Debug output of BufWriter. ( #588 )
...
The BufWriter docs inaccurately stated that it flushes on drop, which it does
not do. This PR changes the docs, as well as the example, to highlight that
the user must explicitly flush a bufwriter.
There were also two places where the BufWriter code referred to it as a
BufReader: in the link to the std docs, and in the Debug output. Those have
also been fixed.
5 years ago
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