barley-std
This crate contains the standard library for the barley workflow engine. It provides a set of common actions that can be used in any script.
```rust use barleyruntime::prelude::*; use barleystd::thread::Sleep; use std::time::Duration;
async fn main() -> Result<()> { let interface = Interface::new();
let wait1s = Sleep::new(Duration::fromsecs(1)); let wait2s = Sleep::new(Duration::fromsecs(2));
let wait1s = interface.addaction(wait1s).await; let mut wait2s = interface.addaction(wait2s).await;
wait2s.requires(wait1s);
interface.updateaction(wait2s).await;
interface.run().await } ```