GitHub

InterruptExitCode

API reference for InterruptExitCode.

The exit code default_teardown gives an interruption carrying this annotation (Effect's Runtime.InterruptExitCode), for a component that ends a program by interrupting its main fiber on purpose, such as a stdio server after stdin closes. Pass it with fiber.interrupt_as(by, Context.make(InterruptExitCode, 0)): it is read from the Cause, so providing it as a service does nothing.