/** * Returns an effect that semantically runs the effect on a fiber, producing * an `Exit` for the completion value of the fiber. * * @tsplus getter effect/core/io/Effect exit */ export function exit(self: Effect) { return self.foldCause( (cause) => Exit.failCause(cause), (success) => Exit.succeed(success) ) }