which_one
just like an ordinary function (which it is). Note that AutoMan functions immediately return an Outcome
, but continue to execute asynchronously in the background. AutoMan builds on top of a Scala feature called a future to make this happen.Outcome
's answer
field, e.g.,LowConfidenceAnswer
and OverBudgetAnswer
. If you run out of money during a computation, a LowConfidenceAnswer
will let you access to lower-confidence results. An OverBudgetAnswer
signals that you didn't have enough money in your budget to begin with.automan
statement, and cleanup will happen automatically. This feature was inspired by the C# using
statement:apps
directory.