2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-04-28 03:06:49 +00:00
Commit graph

22 commits

Author SHA1 Message Date
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
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
Yoshua Wuyts
24cdb2d489 add stream::{Sum,Product} (#343)
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-10-16 00:31:49 +02:00
Yoshua Wuyts
49faea2023 init FutureExt (#308)
* init FutureExt

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>

* prelude

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>

* Refactor extension_trait

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>

* Fix rustdoc

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-10-15 16:27:06 +02:00
Yoshua Wuyts
b4c1c63fd2
task::blocking async closure -> FnOnce
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-10-15 16:01:24 +02:00
Yoshua Wuyts
1a3429655c
init blocking-updates
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-10-15 16:00:15 +02:00
Yoshua Wuyts
9ab7b1ae6e
Merge pull request #251 from async-rs/blocking-unstable
add an unstable `task::blocking` function
2019-10-09 12:32:44 +02:00
Yoshua Wuyts
647aab819f
impl feedback
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-10-08 14:55:09 +02:00
k-nasa
f08fcd0bbb refactor 2019-10-01 18:08:24 +09:00
Tyler Neely
10146e31f0 Stagger background thread spin-down to avoid a thundering herd 2019-08-15 18:18:13 +02:00
Stjepan Glavina
9b3e8b8f26 Use our own Sink/Empty and fix compilation errors 2019-08-15 11:47:20 +02:00
Stjepan Glavina
ea2da1f4a4
Merge branch 'master' into tyler_elastic_threadpool 2019-08-15 10:52:52 +02:00
Stjepan Glavina
a2e54fcd29 Replace crossbeam with crossbeam-channel 2019-08-12 23:47:32 +02:00
Stjepan Glavina
ae84fd4498
Merge branch 'master' into tyler_elastic_threadpool 2019-08-12 20:32:49 +02:00
Stjepan Glavina
a430e27819 Cleanup, docs, fmt 2019-08-12 18:00:21 +02:00
Tyler Neely
445b4161cb Improve comment on the blocking threadpool 2019-08-09 16:40:31 +02:00
Tyler Neely
81fa1d419a Remove all of the dynamic control stuff for now and just use nonblocking sends + 1 second receive timeouts 2019-08-09 12:22:54 +02:00
Tyler Neely
ab613a53e5 Improve comments in the blocking threadpool 2019-08-09 12:06:43 +02:00
Tyler Neely
4cb1faf299 Use unbuffered work queue in the dynamic threadpool to reduce bufferbloat 2019-08-09 12:06:26 +02:00
Tyler Neely
d75aae23cb Tune timings of dynamic threadpool 2019-08-09 12:06:00 +02:00
Tyler Neely
e97dfdc4cc Add dynamic threadpool 2019-08-08 16:48:18 +02:00
Florian Gilcher
5b0a6269a9
Initial commit 2019-08-08 14:44:48 +02:00