Skip to content
Open
Prev Previous commit
Next Next commit
docs: add TODO
  • Loading branch information
tstelzer committed Jul 7, 2022
commit aa764e961fe94ee11bd373760b2050e75af021aa
2 changes: 2 additions & 0 deletions packages/@contentlayer/utils/src/effect/Stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ export const startWith =
export const startWithRight =
<A2>(value: A2) =>
<R1, E1, A1>(stream: S.Stream<R1, never, E.Either<E1, A1>>): S.Stream<R1, never, E.Either<E1, A2 | A1>> =>
// TODO: Is this correct? Technically, I think this inserts the "init" _after_ any events -> race condition?
// how about `S.merge_(S.fromIterable([E.right(value)]), stream)`
S.merge_(stream, S.fromIterable([E.right(value)]))

export const chainMapEitherRight =
Expand Down