Method ADT.Scheduler()->add()


Method add

Consumer add(Consumer c)

Description

(Re-)activate a Consumer.


Method add

variant Consumer add(int|float weight, mixed val)

Description

Create a Consumer with the weight weight for the value val, and add it to the Scheduler.