2024-12-01 22:21:17 +01:00
|
|
|
package component:churn-tasks@0.1.0;
|
|
|
|
|
2024-12-02 23:12:37 +01:00
|
|
|
interface process {
|
|
|
|
resource process {
|
|
|
|
constructor();
|
|
|
|
run-process: func(inputs: list<string>) -> string;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-12-01 22:21:17 +01:00
|
|
|
interface task {
|
|
|
|
id: func() -> string;
|
|
|
|
should-run: func() -> bool;
|
|
|
|
execute: func();
|
|
|
|
}
|
|
|
|
|
|
|
|
world churn {
|
|
|
|
export task;
|
2024-12-02 23:12:37 +01:00
|
|
|
import process;
|
2024-12-01 22:21:17 +01:00
|
|
|
}
|