New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Iterant.repeat (method) #571

Closed
alexandru opened this Issue Jan 27, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@alexandru
Member

alexandru commented Jan 27, 2018

Need the following builder for Iterant:

sealed abstract class Iterant[F[_], A] {

  def repeat(implicit F: Sync[F]): Iterant[F, A]
}

Should be equivalent of RepeatSourceObservable.

Should work like this:

  1. mirrors the source exactly, until Halt(None)
  2. when Halt(None) happens, this operator should swallow it and return the source again, thus restarting it
  3. the objective being to create a loop that goes over the source again and again

@alexandru alexandru added this to the 3.0.0 milestone Jan 27, 2018

@alexandru alexandru changed the title from Add Iterant.repeat to Add Iterant.repeat (method) Jan 27, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment