k-nasa
23b7c174f3
feat: Stabilize io::Std*Lock
2020-03-03 22:46:18 +09:00
Yoshua Wuyts
9167d42f4b
Merge pull request #708 from sunli829/master
...
Add Xactor to the ecosystems inside the readme
2020-03-02 13:20:14 +01:00
Yoshua Wuyts
4034d58709
Merge pull request #714 from abhijeetbhagat/patch-1
...
Add missing ? operator after handle.await
2020-03-02 13:11:15 +01:00
abhi
4742f461fe
Add missing ? operator after handle.await
...
According to line#118, there should be a `?` operator after `await`.
2020-02-22 15:17:06 +05:30
nasa
efab39eeaf
Merge pull request #710 from k-nasa/fix_ci_failed
...
Fixed ci failing
2020-02-20 09:33:44 +09:00
k-nasa
bd60cd9f81
run cargo fmt
2020-02-20 09:03:36 +09:00
sunli
b9e4b6da3e
Add Xactor to the ecosystems inside the readme
2020-02-19 14:36:07 +08:00
Yoshua Wuyts
eb03f37e43
Merge pull request #697 from async-rs/core-docs
...
Document the core feature
2020-02-17 13:38:39 +01:00
Yoshua Wuyts
d87e283215
Update src/lib.rs
2020-02-17 13:38:24 +01:00
Yoshua Wuyts
283a54a155
Update src/lib.rs
2020-02-17 13:36:59 +01:00
Yoshua Wuyts
3719484eba
Update src/lib.rs
...
Co-Authored-By: nasa <htilcs1115@gmail.com>
2020-02-17 13:36:23 +01:00
Katharina Fey
aae835cc14
channel/recv: improving function docs and code example
...
At the moment it's not clear when and why recv returns Option<T>,
instead of just T. This changed comment makes it clear that None will
only be returned once no data will ever be sent again (i.e. after all
senders are gone).
2020-02-12 01:38:20 +01:00
Oleg Nosov
68063adddf
Add link to tests
2020-02-08 16:22:11 +03:00
Oleg Nosov
d7cab38b67
core
=> std
2020-02-08 15:49:01 +03:00
Oleg Nosov
32068942a6
Fixed flatten
2020-02-08 15:44:25 +03:00
Oleg Nosov
85c32ef9d2
Use assert
without if
-clause
2020-02-07 22:45:15 +03:00
Oleg Nosov
b68be72763
Use assert
instead of panic
2020-02-07 22:42:59 +03:00
Oleg Nosov
c80915e216
Dont spawn thread in tests
2020-02-07 22:22:38 +03:00
Oleg Nosov
303ac90b7c
Fixed flat_map
2020-02-07 22:12:42 +03:00
Yoshua Wuyts
d026c44ea3
Document the core feature
...
Follow-up to https://github.com/async-rs/async-std/pull/680
2020-02-04 11:07:50 +01:00
Yoshua Wuyts
125fa5b0a0
Merge pull request #680 from k-nasa/no_std
...
Some modules support no_std
2020-02-04 11:02:19 +01:00
Yoshua Wuyts
39f2c6da78
V1.5.0 ( #694 )
...
* Update CHANGELOG.md
* v1.5.0
* Update CHANGELOG.md
2020-02-03 16:45:00 +01:00
k-nasa
3e24e0ba4e
ci: fix no-std check
2020-02-01 16:45:59 +09:00
k-nasa
0d90cb07b9
fix: Move extern crate alloc
to lib.rs
2020-02-01 09:49:54 +09:00
k-nasa
f789f9d4f6
Select future-core featue according to feature
2020-02-01 09:47:33 +09:00
k-nasa
ef985bc72e
ci: fix no_std ci
2020-02-01 09:45:41 +09:00
Stjepan Glavina
1d875836a2
Implement Clone for TcpStream ( #689 )
...
* Implement Clone for TcpStream
* Update examples
* Remove accidentally added examples
2020-01-28 18:14:16 +01:00
k-nasa
7efe7caf66
fix: Change feature name no-std to alloc
2020-01-28 15:58:46 +09:00
k-nasa
22d929d481
fix import Future
2020-01-28 15:58:46 +09:00
k-nasa
d622ec5d35
feat: Make the stream module no_std
2020-01-28 15:58:46 +09:00
k-nasa
880b7ee987
remove crate::prelude import
2020-01-28 15:58:46 +09:00
k-nasa
1762de285b
feat: Make the future module no_std
2020-01-28 15:58:46 +09:00
k-nasa
6aa55fde59
feat: Make the task module no_std
2020-01-28 15:58:46 +09:00
k-nasa
41f114d9fe
ci: Add no-std check
2020-01-28 15:58:46 +09:00
k-nasa
3d32fd81f4
feat: Make the utils module no_std
2020-01-28 15:58:46 +09:00
k-nasa
51b84a7620
feat: Add no_std attribute when not std feature
2020-01-28 15:58:46 +09:00
k-nasa
4996f29778
feat: Add no-std feature
2020-01-28 15:58:46 +09:00
Toralf Wittner
57974ae0b7
Use non-blocking connect for TcpStream. ( #687 )
...
* Use non-blocking connect for TcpStream.
Instead of spawning a background thread which is unaware of any timeouts
but continues to run until the TCP stack decides that the remote is not
reachable we use mio's non-blocking connect.
mio's `TcpStream::connect` returns immediately but the actual connection
is usually just in progress and we have to be sure the socket is
writeable before we can consider the connection as established.
* Add Watcher::{poll_read_ready, poll_write_ready}.
Following a suggestion of @stjepang we offer methods to check for
read/write readiness of a `Watcher` instead of the previous approach to
accept a set of `Waker`s when registering an event source. The changes
relative to master are smaller and both methods look more useful in
other contexts. Also the code is more robust w.r.t. wakeups of the
`Waker` from clones outside the `Reactor`.
I am not sure if we need to add protection mechanisms against spurious
wakeups from mio. Currently we treat the `Poll::Ready(())` of
`Watcher::poll_write_ready` as proof that the non-blocking connect has
finished, but if the event from mio was a spurious one, it might still
be ongoing.
2020-01-27 23:13:13 +01:00
Yoshua Wuyts
57f9fb7e93
Merge pull request #682 from k-nasa/impl_clone_for_dir_entry
...
Implement Clone trait for DirEntry
2020-01-27 13:10:20 +01:00
Yoshua Wuyts
6c1b5eb3ed
Merge pull request #667 from olegnn/option_take_while
...
Use `take_while` instead of `scan` in `impl` of `Product`, `Sum` and `FromStream` for `Option` and `Result`
2020-01-27 11:54:20 +01:00
Yoshua Wuyts
beb8d240c2
Merge pull request #688 from ninj/patch-1
...
fix syntax problem for task::sleep
2020-01-25 23:40:43 +01:00
ninj
b258215952
fix syntax problem for task::sleep
2020-01-25 22:13:26 +00:00
Florian Gilcher
1ababac97f
Merge branch 'accept_loop_pattern'
2020-01-22 12:47:41 +01:00
Florian Gilcher
f9fe5c90cf
Fix some typos in accept-loop pattern chapter
2020-01-22 12:47:18 +01:00
Florian Gilcher
84fe94444b
Merge pull request #675 from k-nasa/add_timeout_example
...
Add stream::timeout example when timeout error
2020-01-21 16:02:28 +01:00
Florian Gilcher
cad2880eb8
Merge pull request #550 from sclaire-1/master
...
Edit tutorial: implementing_a_client.md
2020-01-21 15:44:44 +01:00
Taiki Endo
6b860c370a
Remove usage of unstable format_code_in_doc_comments option ( #685 )
2020-01-20 21:41:48 +01:00
Katharina Fey
81aa6d152a
Changing task::block_on to park after a single poll ( #684 )
...
This was previously discussed in #605 and others as a source of high
CPU load when sleeping tasks because of the overhead created by
retrying a future in short succession.
2020-01-20 20:40:01 +01:00
k-nasa
2221441a4c
feat: Implement Clone trait for DirEntry
2020-01-18 08:36:54 +09:00
Oleg Nosov
ed7ddacb28
Rewrote Result
s implementation using take_while
and filter_map
2020-01-17 17:19:51 +03:00