dignifiedquire
52c72426c1
fix: do not require the runtime to use unstable features
2020-06-03 18:38:20 +02:00
dignifiedquire
92532612b7
mark spawn_local unstable
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
b96afc41dc
implement task locals
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
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
Alfie John
af2d46d9b9
Tiny grammar fix
2020-01-07 13:29:30 +11:00
Stjepan Glavina
36d24cd0e1
New scheduler resilient to blocking
2019-12-16 13:57:27 +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
0d5c7a217f
stabilize task::yield_now
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-11-12 02:10:55 +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
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
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
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
Yoshua Wuyts
12fdc1232d
rename task::blocking to task::spawn_blocking
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-10-15 16:01:26 +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
a9950c5c9f
stabilize task::ready! ( #325 )
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-10-14 15:06:24 +02:00
Yoshua Wuyts
d6aa1fb501
Add task::yield_now as "unstable" ( #300 )
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-10-14 13:58:26 +02:00
k-nasa
9d9543c46b
refactor: Remove needless main fn
2019-10-13 16:33:02 +09:00
Yoshua Wuyts
fc904a22cd
add task::blocking docs
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-10-09 13:03:38 +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
Yoshua Wuyts
df15c04f28
spawn_blocking -> blocking
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-10-08 14:24:37 +02:00
Michael J Ward
75b6c60c67
Corrects a cfg feature declaration in task/mod.rs
2019-10-06 12:00:02 -05:00
Yoshua Wuyts
958d3a9e27
add an unstable task::spawn_blocking
function
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-09-28 01:37:17 +02:00
Yoshua Wuyts
553e48057f
Merge pull request #133 from yoshuawuyts/ready_macro
...
expose `task::ready!`
2019-09-24 22:16:20 +02:00
Stjepan Glavina
797a6b2d90
Add a missing assert in a doc example
2019-09-22 12:16:35 +02:00
Stjepan Glavina
bfd7af8775
Rename local.rs -> task_local.rs
2019-09-18 13:59:32 +02:00
Yoshua Wuyts
d0312a028c
mark task::ready as unstable
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-09-17 23:32:38 +02:00
Yoshua Wuyts
d5725e78be
use async-macros
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-09-17 23:24:15 +02:00
Yoshua Wuyts
1ad339a19e
rebase on master
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-09-17 23:22:30 +02:00
Stjepan Glavina
0924911ac3
Implement simple work stealing
2019-09-17 11:12:47 +02:00
Yoshua Wuyts
9c82d5e3f3
remove custom log tools in favor of macro crate
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-09-16 14:07:06 +02:00
Stjepan Glavina
1d862cf604
Remove the Send bound from block_on
2019-09-15 00:36:17 +02:00
Stjepan Glavina
bac74c2d7f
Reduce dependency on futures crate ( #140 )
...
* Add future::poll_fn
* Replace all uses of poll_fn with the new one
* Remove some uses of futures
* Simplify ReadDir and DirEntry
* Remove some use of futures from File
* Use futures subcrates
* Fix imports in docs
* Remove futures-util dependency
* Remove futures-executor-preview
* Refactor
* Require more features in the futures-preview crate
2019-09-05 01:22:41 +02:00
Yoshua Wuyts
63ad786768
remove async_await feature gate
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-08-21 00:29:35 -07:00
Stjepan Glavina
e44451a042
Revamp IO traits and Stream trait
2019-08-12 12:50:35 +02:00
Stjepan Glavina
3f4a56abdc
Reformat doc examples
2019-08-09 02:56:59 +02:00
Florian Gilcher
5b0a6269a9
Initial commit
2019-08-08 14:44:48 +02:00