Runlet.Cmd.Suppress (runlet v1.2.7)

View Source

Ignore events for a time period in seconds

Summary

Functions

Sets a timer and ignores any events until the timer fires.

Types

t()

@type t() :: %Runlet.Cmd.Suppress{
  active: boolean(),
  ref: reference() | nil,
  tref: :timer.tref() | nil
}

Functions

exec(stream, seconds)

@spec exec(Enumerable.t(), pos_integer()) :: Enumerable.t()

Sets a timer and ignores any events until the timer fires.

Can be used for long running commands that always output on start.

Args:

suppress <seconds>