Countdown

h8io.stages.std.Countdown
See theCountdown companion class
object Countdown

Factory for Countdown stages.

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Countdown.type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply[T](n: Long): Endo[T, Nothing]

Creates a Countdown that processes n items per cycle.

Creates a Countdown that processes n items per cycle.

If n ≤ 0, returns DeadEnd (which immediately signals completion), ensuring the returned stage is always safe to use.

Type parameters

T

the value type

Value parameters

n

the cycle length; must be positive for any processing to occur

Attributes

Returns

a stage that processes n values per cycle, or DeadEnd if n ≤ 0