Update tests, examples, benches

This commit is contained in:
TechnoPorg committed 2026-01-22 00:30:48 +01:00
1 parent bacac903b3
commit 85ccd7e507
89 files changed
+942 -1785

No files matched your search

+2 -4
View File
@@ -56,6 +56,7 @@
//! ```
use dagx::{task, DagResult, DagRunner, Task};
use futures::FutureExt;
// Task that validates and processes input
struct ValidateAndDouble {
@@ -137,10 +138,7 @@ async fn main() -> DagResult<()> {
.depends_on((&cat1, &cat2, &cat3));
// Execute
dag.run(|fut| {
tokio::spawn(fut);
})
.await?;
dag.run(|fut| tokio::spawn(fut).map(Result::unwrap)).await?;
// Display results
println!("\nFinal summary: {}", dag.get(summary)?);