Skip to content

Conversation

@udoprog
Copy link
Contributor

@udoprog udoprog commented Jan 11, 2020

tokio-buf and tokio-current-thread appear to have straight up been deprecated. It would be nice to add a notice on what to use instead for current thread (futures::executor::block_on is an alternative), but I'm not sure what to do.

Using the basic scheduler works, but is somewhat awkard:

let mut rt = tokio::runtime::Builder::new().basic_scheduler().enable_all().build()?;
let set = tokio::task::LocalSet::new();
let result = set.block_on(&mut rt, /* future */);


//! Asynchronous stream of bytes.
//!
//! > **Note:** This crate has been **deprecated in tokio 0.2.x**.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is fine no one was really using it

@LucioFranco LucioFranco merged commit 0f11d56 into tokio-rs:v0.1.x Jan 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants