File tree Expand file tree Collapse file tree 1 file changed +9
-12
lines changed
rust/kernel/kasync/executor Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -177,19 +177,16 @@ struct ExecutorInner {
177
177
/// use kernel::spawn_task;
178
178
/// use kernel::workqueue;
179
179
///
180
- /// fn example_shared_workqueue() -> Result {
181
- /// let mut handle = Executor::try_new(workqueue::system())?;
182
- /// spawn_task!(handle.executor(), async {
183
- /// pr_info!("First workqueue task\n");
184
- /// })?;
185
- /// spawn_task!(handle.executor(), async {
186
- /// pr_info!("Second workqueue task\n");
187
- /// })?;
188
- /// handle.detach();
189
- /// Ok(())
190
- /// }
180
+ /// let mut handle = Executor::try_new(workqueue::system())?;
181
+ /// spawn_task!(handle.executor(), async {
182
+ /// pr_info!("First workqueue task\n");
183
+ /// })?;
184
+ /// spawn_task!(handle.executor(), async {
185
+ /// pr_info!("Second workqueue task\n");
186
+ /// })?;
187
+ /// handle.detach();
191
188
///
192
- /// # example_shared_workqueue().unwrap();
189
+ /// # Ok::<(), Error>(())
193
190
/// ```
194
191
pub struct Executor {
195
192
queue : Either < BoxedQueue , & ' static Queue > ,
You can’t perform that action at this time.
0 commit comments