import std/io effect choose { ctl choose :: -> Bool } // Continuations are one-shot: resuming twice is a runtime error. fn both :: { handle { if choose () { 1 } else { 2 } } with { choose -> resume True + resume False } } pub fn main :: -> () / { io.println "start" io.println (show (both ())) } //> start //! panic: `resume` called twice (continuations are one-shot)