File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,6 @@ use futures_lite::Future;
44
44
/// thread_ticker.try_tick();
45
45
/// assert_eq!(count.load(Ordering::Relaxed), 1);
46
46
/// ```
47
- ///
48
47
#[ derive( Debug , Clone ) ]
49
48
pub struct ThreadExecutor {
50
49
executor : Arc < Executor < ' static > > ,
@@ -67,7 +66,7 @@ impl ThreadExecutor {
67
66
}
68
67
69
68
/// Gets the `[ThreadSpawner]` for the thread executor.
70
- /// Use this to spawn tasks that run on the thread this was instatiated on.
69
+ /// Use this to spawn tasks that run on the thread this was instantiated on.
71
70
pub fn spawner ( & self ) -> ThreadSpawner < ' static > {
72
71
ThreadSpawner ( self . executor . clone ( ) )
73
72
}
@@ -88,7 +87,7 @@ impl ThreadExecutor {
88
87
}
89
88
90
89
/// Used to spawn on the [`ThreadExecutor`]
91
- #[ derive( Debug ) ]
90
+ #[ derive( Debug , Clone ) ]
92
91
pub struct ThreadSpawner < ' a > ( Arc < Executor < ' a > > ) ;
93
92
impl < ' a > ThreadSpawner < ' a > {
94
93
/// Spawn a task on the thread executor
You can’t perform that action at this time.
0 commit comments