dignifiedquire
52c72426c1
fix: do not require the runtime to use unstable features
2020-06-03 18:38:20 +02:00
Friedel Ziegelmayer
e4c4c93d29
Test and fix 32 bit targets
2020-05-07 23:20:44 +02:00
dignifiedquire
27c605b4c9
cr: bring back trace call
2020-05-07 20:56:52 +02:00
dignifiedquire
faea222b9c
fix: use run instead of block_on
2020-05-02 20:27:50 +02:00
dignifiedquire
92532612b7
mark spawn_local unstable
2020-05-02 20:27:50 +02:00
dignifiedquire
280b1a4344
remove invalid doc comment
2020-05-02 20:27:50 +02:00
dignifiedquire
e4df1405c1
feat: add basic wasm support
2020-05-02 20:27:50 +02:00
dignifiedquire
228cc59b3b
feat: add spawn_local
2020-05-02 20:27:50 +02:00
dignifiedquire
0a7a52aed5
update to work on smol/master
2020-05-02 20:27:50 +02:00
dignifiedquire
f5fa0d7e4e
avoid boxing futures
2020-05-02 20:27:50 +02:00
dignifiedquire
b96afc41dc
implement task locals
2020-05-02 20:27:50 +02:00
dignifiedquire
e082634b5e
fix spawning
2020-05-02 20:27:50 +02:00
dignifiedquire
1308fbdf55
switch to smol instead of an internal runtime
2020-05-02 20:27:50 +02:00
k-nasa
98cbf7f8eb
Restore task::spawn_blocking
2020-03-17 20:54:16 +09:00
k-nasa
84e5c5f351
Merge branch 'master' into new-scheduler
2020-03-17 20:38:19 +09:00
k-nasa
7efe7caf66
fix: Change feature name no-std to alloc
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
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
Alfie John
af2d46d9b9
Tiny grammar fix
2020-01-07 13:29:30 +11:00
nasa
d8befe24e8
Revert "upgrade log, remove kv-log-macro"
2019-12-18 08:01:09 +09:00
Stjepan Glavina
ceba324bef
Fix feature flags
2019-12-16 15:53:31 +01:00
Stjepan Glavina
36d24cd0e1
New scheduler resilient to blocking
2019-12-16 13:57:27 +01:00
Yoshua Wuyts
b7e55762d8
upgrade log, remove kv-log-macro
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-12-16 10:04:39 +01:00
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>
2019-12-11 12:49:22 +01:00
Tomasz Miąsko
f06ab9fbc4
Remove mention of task stack size configuration ( #612 )
2019-12-11 12:36:50 +01:00
Povilas Balciunas
81e3c41826
Fix a link in the docs
2019-11-29 11:52:54 +13:00
Yoshua Wuyts
c9a2e74789
Merge pull request #523 from async-rs/update-lib-example
...
polish lib.rs examples
2019-11-21 21:24:54 +01:00
k-nasa
6cbf48f12d
fix clippy warn
2019-11-16 01:29:16 +09:00
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
2019-11-13 20:32:37 +01:00
Yoshua Wuyts
2dfdc1c482
polish lib.rs examples
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-11-12 23:10:23 +01:00
Yoshua Wuyts
0d5c7a217f
stabilize task::yield_now
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-11-12 02:10:55 +01:00
Stjepan Glavina
1a50ffd144
Delete unused import
2019-11-12 00:38:22 +01:00
Stjepan Glavina
21c5c48cb6
Lower the timeout to 1 second
2019-11-12 00:37:54 +01:00
Stjepan Glavina
6677d52c2d
Improve thread creating algorithm in spawn_blocking
2019-11-12 00:35:29 +01:00
Stjepan Glavina
548733e5d5
Cleanup stream traits ( #487 )
...
* Cleanup stream traits
* Fix docs
2019-11-09 11:22:09 +01:00
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
2019-11-07 23:56:58 +00:00
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
2019-11-07 23:39:54 +00:00
Stjepan Glavina
93b01e36ed
Clippy fixes ( #462 )
2019-11-06 19:29:17 +00:00
Tyler Neely
5adc608791
Spawn several threads when we fail to enqueue work in the blocki… ( #181 )
...
* Rebase onto master
* Switch to unbounded channels
2019-11-01 21:53:13 +01:00
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
Florian Gilcher
f262fd8a40
Merge pull request #392 from taiki-e/clippy
...
Remove usage of actions-rs/clippy-check
2019-10-27 20:26:43 -07:00
k-nasa
fe49f2618f
fix clippy::redundant_clone
2019-10-27 20:34:44 +09:00
Taiki Endo
6549b66ad2
run clippy check on beta & address clippy warnings
2019-10-27 03:28:20 +09:00
Taiki Endo
2abf5ca891
Deny warnings on CI ( #378 )
...
* Deny warnings on CI
* Fix some clippy warnings
2019-10-23 20:20:59 +09:00
Taiki Endo
944e43d4bf
Remove Pin API related unsafe code by using pin-project-lite cra… ( #381 )
2019-10-23 10:35:02 +01:00
Stjepan Glavina
ec23632f3e
Cleanup: replace cfg-if with our macros ( #361 )
...
* Cleanup: replace cfg-if with our macros
* Prefix macros with cfg_
* Remove #[macro_export] from internal macros
2019-10-17 19:17:49 +02:00
Stjepan Glavina
46f0fb1c64
Make sure each invocation of block_on uses its own Parker ( #358 )
2019-10-17 11:52:42 +02:00
Stjepan Glavina
add6863185
Fix typos
2019-10-16 12:24:18 +02:00
Yoshua Wuyts
faff1f7370
task docs ( #346 )
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-10-16 10:28:14 +02:00