Effect CommunityEC
Effect Community3y ago
22 replies
Jules

Introducing `tapSyncError`: A New Version of `tap` for Error Handling

Is there a version of tap which take a function (a) => void
Something like:
// what I do these days
Effect.tapError((error) => Effect.sync(() => report(error.message))),

// what I'm talking about:
Effet.tapSyncError((error) => report(error.message))
Was this page helpful?