Create a SimpleExecutor that polls tasks in a busy loop

This commit is contained in:
Philipp Oppermann
2020-03-27 13:03:24 +01:00
parent dac7e67403
commit b25b841467
2 changed files with 46 additions and 0 deletions

View File

@@ -5,6 +5,8 @@ use core::{
task::{Context, Poll},
};
pub mod simple_executor;
pub struct Task {
future: Pin<Box<dyn Future<Output = ()>>>,
}