Fastingeither
Fastingeither is a hypothetical functional programming construct used in discussions of concurrent error handling. It describes a race between two computations that each yield an Either value and returns the result of the computation that completes first.
Semantics are simple and design-driven. The two computations run concurrently. The first to finish yields either
Implementation considerations include how cancellation and resource cleanup are handled. In languages with asynchronous primitives, fastingeither
Applications for fastingeither are typically in latency-sensitive contexts where a quick result is preferable to guaranteeing