Effect CommunityEC
Effect Communityโ€ข3y agoโ€ข
66 replies
Nomadin

Error in Stream.tick function

https://github.com/Effect-TS/io/issues/639

I'm I doing anything wrong here?

import { Duration, Effect, Stream, pipe } from "effect";

pipe(
  Stream.tick(Duration.decode(1000)),
  Stream.runForEach(Effect.log),
  Effect.runPromise
);


Results in

Error: BUG: Cause.reduceWithContext - please report an issue at https://github.com/Effect-TS/io/issues
Was this page helpful?