Official tokio_timer example does not compile

Maybe its my fault, but the example from https://tokio-rs.github.io/tokio-timer/tokio_timer/index.html doesn’t compile with error:

xxx/timer$ cargo build
Updating crates.io index
Compiling futures v0.1.25
Compiling crossbeam-utils v0.5.0
Compiling slab v0.4.1
Compiling tokio-executor v0.1.5
Compiling tokio-timer v0.2.7
Compiling timer v0.1.0 (/home/mirco/Algorithms/timer)
error[E0599]: no method named sleep found for type tokio_timer::Timer<tokio_executor::park::ParkThread> in the current scope
–> src/main.rs:15:23
|
15 | let sleep = timer.sleep(Duration::from_millis(500));
| ^^^^^

error: aborting due to previous error

For more information about this error, try rustc --explain E0599.
error: Could not compile timer.

To learn more, run the command again with --verbose.


Toml:

[dependencies]
tokio-timer = “0.2.7”
futures = “0.1”

It looks like the published version of tokio-timer doesn’t contain that function. You can see the documentation for the current release here: https://docs.rs/tokio-timer/0.2.7/tokio_timer/