MCPcopy Create free account
hub / github.com/Snowflyt/tinyeffect / withLog

Function withLog

test/effected.spec.ts:2612–2616  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

2610
2611 const withLog =
2612 <T>(message: string) =>
2613 <E extends Effect>(self: Effected<E, T>): Effected<E | InferEffect<typeof log>, T> =>
2614 self.tap(function* (value) {
2615 yield* log(`${message}: ${String(value)}`);
2616 });
2617
2618 const sleep = effect("sleep")<[ms: number], void>;
2619 const delay =

Callers 1

effected.spec.tsFile · 0.70

Calls 1

tapMethod · 0.65

Tested by

no test coverage detected