View Source Runlet.Cmd.Suppress (runlet v1.2.3)

Ignore events for a time period in seconds

Link to this section Summary

Functions

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

Link to this section Types

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

Link to this section Functions

@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>