1 unstable release
0.9.0 | Sep 3, 2019 |
---|
#8 in #libcore
7KB
drone-async-await
A libcore wrapper to enable native async
/await
syntax for Drone
applications.
Usage
Place the following to the Cargo.toml:
[dependencies]
core = { package = "drone-async-await", version = "0.9" }
Description
This crate re-exports contents of core
and defines two new functions
with the following paths:
core::future::from_generator
core::future::poll_with_tls_context
These two functions are absent from original libcore, but defined in libstd.
This is the reason for the following errors when you attempt to use .await
in no_std
context:
error[E0433]: failed to resolve: could not find `poll_with_tls_context` in `future`
error[E0433]: failed to resolve: could not find `from_generator` in `future`
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Dependencies
~7MB
~135K SLoC