diff options
author | Lucio Franco <luciofranco14@gmail.com> | 2019-08-08 15:48:53 -0400 |
---|---|---|
committer | Carl Lerche <me@carllerche.com> | 2019-08-08 12:48:53 -0700 |
commit | 50e5d401df9931eafabee554bb1a370958fc57d2 (patch) | |
tree | 46ee622b3167f98f7cb0dc850e3f2de5e9f7ce87 /tokio-executor | |
parent | 2e69f2a7fddfe3d9940ace8ed5610cca83b75369 (diff) |
chore: prepare for v0.2.0-alpha.1 release (#1410)
Diffstat (limited to 'tokio-executor')
-rw-r--r-- | tokio-executor/CHANGELOG.md | 5 | ||||
-rw-r--r-- | tokio-executor/Cargo.toml | 11 | ||||
-rw-r--r-- | tokio-executor/README.md | 34 | ||||
-rw-r--r-- | tokio-executor/src/lib.rs | 2 |
4 files changed, 10 insertions, 42 deletions
diff --git a/tokio-executor/CHANGELOG.md b/tokio-executor/CHANGELOG.md index d0c55b46..95fd8407 100644 --- a/tokio-executor/CHANGELOG.md +++ b/tokio-executor/CHANGELOG.md @@ -1,4 +1,7 @@ -# 0.2.0 (unreleased) +# 0.2.0-alpha.1 (August 8, 2019) + +### Changed +- Switch to `async`, `await`, and `std::future`. ### Removed - `Enter::make_permanent` and `Enter::on_exit` (#???) diff --git a/tokio-executor/Cargo.toml b/tokio-executor/Cargo.toml index 0219e826..24d71f91 100644 --- a/tokio-executor/Cargo.toml +++ b/tokio-executor/Cargo.toml @@ -5,25 +5,24 @@ name = "tokio-executor" # - Update html_root_url. # - Update doc url # - Cargo.toml -# - README.md # - Update CHANGELOG.md. # - Create "v0.2.x" git tag. -version = "0.2.0" +version = "0.2.0-alpha.1" edition = "2018" -documentation = "https://docs.rs/tokio-executor/0.1.7/tokio_executor" +documentation = "https://docs.rs/tokio-executor/0.2.0-alpha.1/tokio_executor" repository = "https://github.com/tokio-rs/tokio" homepage = "https://github.com/tokio-rs/tokio" license = "MIT" -authors = ["Carl Lerche <me@carllerche.com>"] +authors = ["Tokio Contributors <team@tokio.rs>"] description = """ Future execution primitives """ keywords = ["futures", "tokio"] categories = ["concurrency", "asynchronous"] -publish = false [dependencies] [dev-dependencies] +tokio = { version = "=0.2.0-alpha.1", path = "../tokio" } + futures-core-preview = "=0.3.0-alpha.17" -tokio = { version = "*", path = "../tokio" } diff --git a/tokio-executor/README.md b/tokio-executor/README.md index 30159901..328b52b6 100644 --- a/tokio-executor/README.md +++ b/tokio-executor/README.md @@ -2,40 +2,6 @@ Task execution related traits and utilities. -[Documentation](https://docs.rs/tokio-executor/0.1.7/tokio_executor) - -## Overview - -In the Tokio execution model, futures are lazy. When a future is created, no -work is performed. In order for the work defined by the future to happen, the -future must be submitted to an executor. A future that is submitted to an -executor is called a "task". - -The executor is responsible for ensuring that [`Future::poll`] is called -whenever the task is [notified]. Notification happens when the internal state of -a task transitions from "not ready" to ready. For example, a socket might have -received data and a call to `read` will now be able to succeed. - -This crate provides traits and utilities that are necessary for building an -executor, including: - -* The [`Executor`] trait describes the API for spawning a future onto an - executor. - -* [`enter`] marks that the current thread is entering an execution - context. This prevents a second executor from accidentally starting from - within the context of one that is already running. - -* [`DefaultExecutor`] spawns tasks onto the default executor for the current - context. - -* [`Park`] abstracts over blocking and unblocking the current thread. - -[`Executor`]: https://docs.rs/tokio-executor/0.1.7/tokio_executor/trait.Executor.html -[`enter`]: https://docs.rs/tokio-executor/0.1.7/tokio_executor/fn.enter.html -[`DefaultExecutor`]: https://docs.rs/tokio-executor/0.1.7/tokio_executor/struct.DefaultExecutor.html -[`Park`]: https://docs.rs/tokio-executor/0.1.7/tokio_executor/park/trait.Park.html - ## License This project is licensed under the [MIT license](LICENSE). diff --git a/tokio-executor/src/lib.rs b/tokio-executor/src/lib.rs index 37b7751a..8ae4e1ff 100644 --- a/tokio-executor/src/lib.rs +++ b/tokio-executor/src/lib.rs @@ -1,4 +1,4 @@ -#![doc(html_root_url = "https://docs.rs/tokio-executor/0.1.7")] +#![doc(html_root_url = "https://docs.rs/tokio-executor/0.2.0-alpha.1")] #![deny(missing_docs, missing_debug_implementations, rust_2018_idioms)] #![cfg_attr(test, deny(warnings))] #![doc(test(no_crate_inject, attr(deny(rust_2018_idioms))))] |