Std.Exit
enum Exit[A, E]How a computation ended ([task.cause]).
-
Success(A)Ended with a value.
-
Failure(Cause[E])Ended with an error or a defect.
attempt
Section titled “attempt”fn attempt[A, E, R](f: fn() -> A fails E uses { R }) -> Exit[A, E] uses { R }Runs f here and turns its errors and defects into values. An interruption of the current
task is not caught.