Improving TypeScript Syntax for Generators

is there a better way to write this?

yield* $(
  Effect.void,
  Effect.repeat(
    Schedule.untilInputEffect(Schedule.forever, () =>
      Queue.isEmpty(messageQueue),
    ),
  ),
)
Was this page helpful?