You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#[test]
|
|
fn smoke() {
|
|
use futures::executor::block_on;
|
|
use futures::future::{self, FutureExt};
|
|
|
|
let mut counter = 0;
|
|
|
|
{
|
|
let work = future::ready::<i32>(40).inspect(|val| { counter += *val; });
|
|
assert_eq!(block_on(work), 40);
|
|
}
|
|
|
|
assert_eq!(counter, 40);
|
|
}
|