examples: threads.rs; fixed eun typo -> run (#2422)
This commit is contained in:
committed by
GitHub
parent
fd36be3682
commit
61a0bcbdc6
@@ -28,7 +28,7 @@ fn run(engine: &Engine, module: Module, id: i32) -> Result<()> {
|
|||||||
println!("Extracting export...");
|
println!("Extracting export...");
|
||||||
let g = instance
|
let g = instance
|
||||||
.get_func("run")
|
.get_func("run")
|
||||||
.ok_or(format_err!("failed to find export `eun`"))?;
|
.ok_or(format_err!("failed to find export `run`"))?;
|
||||||
|
|
||||||
for _ in 0..N_REPS {
|
for _ in 0..N_REPS {
|
||||||
thread::sleep(time::Duration::from_millis(100));
|
thread::sleep(time::Duration::from_millis(100));
|
||||||
|
|||||||
Reference in New Issue
Block a user