MCPcopy
hub / github.com/Effect-TS/effect / commit

Method commit

packages/effect/src/internal/core.ts:2232–2234  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2230export const YieldableError: new(message?: string, options?: ErrorOptions) => Cause.YieldableError = (function() {
2231 class YieldableError extends globalThis.Error {
2232 commit() {
2233 return fail(this)
2234 }
2235 toJSON() {
2236 const obj = { ...this }
2237 if (this.message) obj.message = this.message

Callers

nothing calls this directly

Calls 1

failFunction · 0.70

Tested by

no test coverage detected