refactor: make DagRunner interface single-threaded
This commit is contained in:
1 parent
d83a815ed0
commit
e4fc0b0d44
25 files changed
+416
-617
No files matched your search
+2
-3
@@ -9,11 +9,10 @@ struct CustomTask {
|
||||
state: i32,
|
||||
}
|
||||
|
||||
impl Task for CustomTask {
|
||||
type Input = (i32,);
|
||||
impl Task<(i32,)> for CustomTask {
|
||||
type Output = i32;
|
||||
|
||||
async fn run(mut self, input: TaskInput<'_, Self::Input>) -> i32 {
|
||||
async fn run(mut self, input: TaskInput<'_, (i32,)>) -> i32 {
|
||||
self.state += input.next().0;
|
||||
self.state
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user