class IterantBuildersAsync[F[_]] extends IterantBuildersSync[F]
Class defining curried Iterant builders for data types that
implement cats.effect.Async.
So instead of having to do:
Iterant.intervalAtFixedRate[Task](1.second)You can do:
Iterant[Task].intervalAtFixedRate(1.second)- Alphabetic
- By Inheritance
- IterantBuildersAsync
- IterantBuildersSync
- IterantBuildersApplicative
- IterantBuilders
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new IterantBuildersAsync()(implicit F: Async[F])
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
bracket[A, B](acquire: F[A])(use: (A) ⇒ Iterant[F, B], release: (A) ⇒ F[Unit])(implicit F: Sync[F]): Iterant[F, B]
Aliased builder, see documentation for Iterant.bracket
Aliased builder, see documentation for Iterant.bracket
- Definition Classes
- IterantBuildersSync
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
defer[A](fa: ⇒ Iterant[F, A])(implicit F: Sync[F]): Iterant[F, A]
Aliased builder, see documentation for Iterant.defer.
Aliased builder, see documentation for Iterant.defer.
- Definition Classes
- IterantBuildersSync
-
def
empty[A]: Iterant[F, A]
Aliased builder, see documentation for Iterant.empty.
Aliased builder, see documentation for Iterant.empty.
- Definition Classes
- IterantBuilders
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
eval[A](a: ⇒ A)(implicit F: Sync[F]): Iterant[F, A]
Aliased builder, see documentation for Iterant.eval.
Aliased builder, see documentation for Iterant.eval.
- Definition Classes
- IterantBuildersSync
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
fromArray[A](xs: Array[A])(implicit arg0: ClassTag[A]): Iterant[F, A]
Aliased builder, see documentation for Iterant.fromArray.
Aliased builder, see documentation for Iterant.fromArray.
- Definition Classes
- IterantBuildersApplicative
-
def
fromIndexedSeq[A](xs: IndexedSeq[A]): Iterant[F, A]
Aliased builder, see documentation for Iterant.fromIndexedSeq.
Aliased builder, see documentation for Iterant.fromIndexedSeq.
- Definition Classes
- IterantBuildersApplicative
-
def
fromIterable[A](xs: Iterable[A]): Iterant[F, A]
Aliased builder, see documentation for Iterant.fromIterable.
Aliased builder, see documentation for Iterant.fromIterable.
- Definition Classes
- IterantBuildersApplicative
-
def
fromIterator[A](xs: Iterator[A]): Iterant[F, A]
Aliased builder, see documentation for Iterant.fromIterator.
Aliased builder, see documentation for Iterant.fromIterator.
- Definition Classes
- IterantBuildersApplicative
-
def
fromList[A](xs: LinearSeq[A]): Iterant[F, A]
Aliased builder, see documentation for Iterant.fromList.
Aliased builder, see documentation for Iterant.fromList.
- Definition Classes
- IterantBuildersApplicative
-
def
fromSeq[A](xs: Seq[A]): Iterant[F, A]
Aliased builder, see documentation for Iterant.fromSeq.
Aliased builder, see documentation for Iterant.fromSeq.
- Definition Classes
- IterantBuildersApplicative
-
def
fromStateAction[S, A](f: (S) ⇒ (A, S))(seed: ⇒ S)(implicit F: Sync[F]): Iterant[F, A]
Aliased builder, see documentation for Iterant.fromStateAction.
Aliased builder, see documentation for Iterant.fromStateAction.
- Definition Classes
- IterantBuildersSync
-
def
fromStateActionL[S, A](f: (S) ⇒ F[(A, S)])(seed: ⇒ F[S])(implicit F: Sync[F]): Iterant[F, A]
Aliased builder, see documentation for Iterant.fromStateActionL.
Aliased builder, see documentation for Iterant.fromStateActionL.
- Definition Classes
- IterantBuildersSync
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
haltS[A](e: Option[Throwable]): Iterant[F, A]
Aliased builder, see documentation for Iterant.haltS.
Aliased builder, see documentation for Iterant.haltS.
- Definition Classes
- IterantBuilders
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
intervalAtFixedRate(initialDelay: FiniteDuration, period: FiniteDuration)(implicit timer: Timer[F]): Iterant[F, Long]
Creates an iterant that emits auto-incremented natural numbers (longs).
Creates an iterant that emits auto-incremented natural numbers (longs). at a fixed rate, as given by the specified
period. The amount of time it takes to process an incoming value gets subtracted from providedperiod, thus created iterant tries to emit events spaced by the given time interval, regardless of how long further processing takesThis version of the
intervalAtFixedRateallows specifying aninitialDelaybefore first value is emitted- initialDelay
initial delay before emitting the first value
- period
period between 2 successive emitted values
- timer
is the timer implementation used to generate delays and to fetch the current time
-
def
intervalAtFixedRate(period: FiniteDuration)(implicit timer: Timer[F]): Iterant[F, Long]
Creates an iterant that emits auto-incremented natural numbers (longs).
Creates an iterant that emits auto-incremented natural numbers (longs). at a fixed rate, as given by the specified
period. The amount of time it takes to process an incoming value gets subtracted from providedperiod, thus created iterant tries to emit events spaced by the given time interval, regardless of how long further processing takes- period
period between 2 successive emitted values
- timer
is the timer implementation used to generate delays and to fetch the current time
-
def
intervalWithFixedDelay(initialDelay: FiniteDuration, delay: FiniteDuration)(implicit timer: Timer[F]): Iterant[F, Long]
Creates an iterant that emits auto-incremented natural numbers (longs) spaced by a given time interval.
Creates an iterant that emits auto-incremented natural numbers (longs) spaced by a given time interval. Starts from 0 with no delay, after which it emits incremented numbers spaced by the
periodof time. The givenperiodof time acts as a fixed delay between successive events.- initialDelay
is the delay to wait before emitting the first event
- delay
the time to wait between 2 successive events
- timer
is the timer implementation used to generate delays and to fetch the current time
-
def
intervalWithFixedDelay(delay: FiniteDuration)(implicit timer: Timer[F]): Iterant[F, Long]
Creates an iterant that emits auto-incremented natural numbers (longs) spaced by a given time interval.
Creates an iterant that emits auto-incremented natural numbers (longs) spaced by a given time interval. Starts from 0 with no delay, after which it emits incremented numbers spaced by the
periodof time. The givenperiodof time acts as a fixed delay between successive events.Without having an initial delay specified, this overload will immediately emit the first item, without any delays.
- delay
the time to wait between 2 successive events
- timer
is the timer implementation used to generate delays and to fetch the current time
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
lastS[A](item: A): Iterant[F, A]
Aliased builder, see documentation for Iterant.lastS.
Aliased builder, see documentation for Iterant.lastS.
- Definition Classes
- IterantBuilders
-
def
liftF[A](a: F[A]): Iterant[F, A]
Aliased builder, see documentation for Iterant.liftF.
Aliased builder, see documentation for Iterant.liftF.
- Definition Classes
- IterantBuildersApplicative
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
nextBatchS[A](batch: Batch[A], rest: F[Iterant[F, A]], stop: F[Unit]): Iterant[F, A]
Aliased builder, see documentation for Iterant.nextBatchS.
Aliased builder, see documentation for Iterant.nextBatchS.
- Definition Classes
- IterantBuilders
-
def
nextCursorS[A](cursor: BatchCursor[A], rest: F[Iterant[F, A]], stop: F[Unit]): Iterant[F, A]
Aliased builder, see documentation for Iterant.nextCursorS.
Aliased builder, see documentation for Iterant.nextCursorS.
- Definition Classes
- IterantBuilders
-
def
nextS[A](item: A, rest: F[Iterant[F, A]], stop: F[Unit]): Iterant[F, A]
Aliased builder, see documentation for Iterant.nextS.
Aliased builder, see documentation for Iterant.nextS.
- Definition Classes
- IterantBuilders
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
now[A](a: A): Iterant[F, A]
Aliased builder, see documentation for Iterant.now.
Aliased builder, see documentation for Iterant.now.
- Definition Classes
- IterantBuilders
-
def
of[A](elems: A*): Iterant[F, A]
Given a list of elements build a stream out of it.
Given a list of elements build a stream out of it.
- Definition Classes
- IterantBuildersApplicative
-
def
pure[A](a: A): Iterant[F, A]
Aliased builder, see documentation for Iterant.pure.
Aliased builder, see documentation for Iterant.pure.
- Definition Classes
- IterantBuilders
-
def
raiseError[A](ex: Throwable): Iterant[F, A]
Aliased builder, see documentation for Iterant.raiseError.
Aliased builder, see documentation for Iterant.raiseError.
- Definition Classes
- IterantBuilders
-
def
range(from: Int, until: Int, step: Int = 1): Iterant[F, Int]
Aliased builder, see documentation for Iterant.range.
Aliased builder, see documentation for Iterant.range.
- Definition Classes
- IterantBuildersApplicative
-
def
repeat[A](elems: A*)(implicit F: Sync[F]): Iterant[F, A]
Aliased builder, see documentation for Iterant.repeat.
Aliased builder, see documentation for Iterant.repeat.
- Definition Classes
- IterantBuildersSync
-
def
repeatEval[A](thunk: ⇒ A)(implicit F: Sync[F]): Iterant[F, A]
Aliased builder, see documentation for Iterant.repeatEval.
Aliased builder, see documentation for Iterant.repeatEval.
- Definition Classes
- IterantBuildersSync
-
def
repeatEvalF[A](fa: F[A])(implicit F: Sync[F]): Iterant[F, A]
Aliased builder, see documentation for Iterant.repeatEvalF.
Aliased builder, see documentation for Iterant.repeatEvalF.
- Definition Classes
- IterantBuildersSync
-
def
suspend[A](fa: ⇒ Iterant[F, A])(implicit F: Sync[F]): Iterant[F, A]
Aliased builder, see documentation for Iterant.suspend.
Aliased builder, see documentation for Iterant.suspend.
- Definition Classes
- IterantBuildersSync
-
def
suspend[A](rest: F[Iterant[F, A]]): Iterant[F, A]
Aliased builder, see documentation for Iterant.suspend.
Aliased builder, see documentation for Iterant.suspend.
- Definition Classes
- IterantBuildersApplicative
-
def
suspendS[A](rest: F[Iterant[F, A]], stop: F[Unit]): Iterant[F, A]
Aliased builder, see documentation for Iterant.suspendS.
Aliased builder, see documentation for Iterant.suspendS.
- Definition Classes
- IterantBuilders
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
tailRecM[A, B](a: A)(f: (A) ⇒ Iterant[F, Either[A, B]])(implicit F: Sync[F]): Iterant[F, B]
Aliased builder, see documentation for Iterant.tailRecM.
Aliased builder, see documentation for Iterant.tailRecM.
- Definition Classes
- IterantBuildersSync
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )