use crate::actors::prelude::*;
use super::watcher;
use super::target;
use std::time::Duration;
use std::thread;
pub fn run() {
let mut system = LocalActorSystem::new();
let mut target = system
.actor_of(target::props(), Some("target"));
let mut watcher = system
.actor_of(watcher::props(target.clone()), None);
thread::sleep(Duration::from_secs(3));
system.stop(&mut target);
thread::sleep(Duration::from_secs(1));
thread::park();
}