async-await: add current_thread::Runtime::block_on_async (#1072)

This function is used by the Tokio macros introduced by #1058  but was
omitted from the PR.
This commit is contained in:
Carl Lerche
2019-04-30 19:55:22 -07:00
committed by GitHub
parent 219f24cbf1
commit 4ef736b9d5
8 changed files with 73 additions and 15 deletions
+5 -10
View File
@@ -71,17 +71,12 @@ jobs:
tokio-buf:
- util
# Check async / await
- template: ci/azure-cargo-check.yml
# Run async-await tests
- template: ci/azure-test-nightly.yml
parameters:
name: async_await
displayName: Async / Await
name: test_nightly
displayName: Test Async / Await
rust: nightly-2019-04-25
noDefaultFeatures: ''
benches: true
crates:
tokio:
- async-await-preview
# Try cross compiling
- template: ci/azure-cross-compile.yml
@@ -113,7 +108,7 @@ jobs:
- test_sub_cross
- test_linux
- features
- async_await
- test_nightly
- cross_32bit_linux
- minrust
- tsan