View Source Runlet.Ctrl.Flow (runlet v1.2.0)

dynamically change flow control for a running event stream

Link to this section Summary

Functions

Alters the flow control for a running process to 1/minute.

Alters the flow control for a running process or processes to count events in minutes

Alters the flow control for several processes running as a different user to count events in minutes.

Link to this section Functions

@spec exec(Runlet.t(), Runlet.PID.t()) :: Enumerable.t()

Alters the flow control for a running process to 1/minute.

Link to this function

exec(env, pid, count, minutes)

View Source
@spec exec(Runlet.t(), Runlet.PID.t() | String.t(), pos_integer(), pos_integer()) ::
  Enumerable.t()

Alters the flow control for a running process or processes to count events in minutes:

# pid 1234: 10 events/2 minutes
flow 1234 10 2

# pids 1234, 2345, 123456
flow "1234 2345 12346" 10 2
Link to this function

exec(env, pid, count, minutes, uid)

View Source
@spec exec(
  Runlet.t(),
  Runlet.PID.t() | String.t(),
  pos_integer(),
  pos_integer(),
  String.t()
) :: Enumerable.t()

Alters the flow control for several processes running as a different user to count events in minutes.

flow 1234 10 2 "nobody"
flow "1234 2345 12346" 10 2 "nobody"