Implement user interaction task source

This commit is contained in:
Keith Yeung 2016-03-12 17:58:52 -05:00
parent 12a96f7194
commit cc049515dc
8 changed files with 71 additions and 59 deletions

View file

@ -12,5 +12,4 @@ use std::result::Result;
pub trait TaskSource<T> {
fn queue(&self, msg: T) -> Result<(), ()>;
fn clone(&self) -> Box<TaskSource<T> + Send>;
}