© 2026 Hedgehog Software, LLC
const archiveFiles = yield* getArchiveFiles(latestManifestId)
Either.mapBoth
error: Uncaught (in promise) (FiberFailure) Error: { "_id": "Effect", "_op": "Commit" }
onLeft
yield* (yield* Either.mapBoth(manifestId$, { onRight: (manifestId) => Effect.if(manifestId == latestManifestId, { onTrue: () => Effect.exit(Effect.succeed("Nothing to update")), onFalse: () => getArchiveFiles(latestManifestId), }), onLeft: (_) => getArchiveFiles(latestManifestId), }));