send a reply when thread is done exiting

fixed failing tests

fix tests

handle error instead of just unwrappng it

create a channel per thread and update tests with a call to rx.recv().unwrap()
This commit is contained in:
Abelardo E. Mendoza 2016-05-29 13:00:09 -06:00
parent e8e7c6545d
commit 88980dc7a5
6 changed files with 33 additions and 11 deletions

View file

@ -35,6 +35,6 @@ pub enum StorageThreadMsg {
/// clears the associated storage data by removing all the key/value pairs
Clear(IpcSender<bool>, Url, StorageType),
/// shut down this thread
Exit
/// send a reply when done cleaning up thread resources and then shut it down
Exit(IpcSender<()>)
}