MCPcopy Create free account
hub / github.com/Effect-TS/effect / writeExit

Function writeExit

packages/platform/src/Multipart.ts:380–382  ·  view source on GitHub ↗
(
  self: Exit.Exit<A, E>
)

Source from the content-addressed store, hash-verified

378 )
379
380const writeExit = <A, E>(
381 self: Exit.Exit<A, E>
382): Channel.Channel<never, unknown, E> => self._tag === "Success" ? Channel.void : Channel.failCause(self.cause)
383
384function convertError(cause: MP.MultipartError): MultipartError {
385 switch (cause._tag) {

Callers 1

makeChannelFunction · 0.85

Calls 1

failCauseMethod · 0.80

Tested by

no test coverage detected