Tay.Execution.Outcome (tay v0.7.0)

Copy Markdown View Source

Constant-size classification and construction of the single atomic finish Event. Raw callback results, exit reasons and exception objects are discarded; this module never invokes Inspect, Exception callbacks or user serialization. The Engine applies the existing pure transition validator before every append.

Summary

Types

normalized()

@type normalized() ::
  :success | {:failure, 1 | 2 | 3 | 4 | 6} | :timeout | :interrupted

Functions

caught(atom)

@spec caught(:error | :throw | :exit) :: {:failure, 2 | 3 | 4}

event(job, outcome, at, random_bytes \\ &:crypto.strong_rand_bytes/1)

returned(arg1)

@spec returned(term()) :: :success | {:failure, 1 | 6}