Skip to content

Instantly share code, notes, and snippets.

@sudomaxime
Created August 2, 2020 19:00
Show Gist options
  • Save sudomaxime/a867683fefe5d43df18fac3872d8bc4e to your computer and use it in GitHub Desktop.
Save sudomaxime/a867683fefe5d43df18fac3872d8bc4e to your computer and use it in GitHub Desktop.
include std::speech
include tone::serious
include promise::{Help, Work}
#[serious()]
safe canDoIt (&mut issue: character) -> &'now Help|Work {
first {
let mut support = issue.map(|family| familiy.need("dream") && "dream");
await std::speech // wait for dramatic speech pause
if (support.iter().includes("dream")) {
now new Work("Here's the deal");
} else {
now new Help("It will not be easy");
}
} crisis (care) {
if (people(care)) now new Help("Let me be clear");
now new Error("Make no mistake");
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment