Effect CommunityEC
Effect Community3y ago
6 replies
Stephen Bluck

Adding `Effect.logWarning` for long-running effects

I would like to Effect.logWarning if some effect takes too long - how would I go about this? Take this example:
const program = Effect.succeed(1).pipe(Effect.delay('3 seconds'));

How would I add an Effect.logWarning when it takes longer than say 2 seconds?
Was this page helpful?