Collektive
class Collektive<ID : Any, R>(val localId: ID, network: Mailbox<ID>, pathFactory: PathFactory = DigestHashingFactory(), computeFunction: Aggregate<ID>.() -> R)
Create a Collektive device with a specific localId and a network to manage incoming and outgoing messages, the computeFunction is the function to apply within the AggregateContext.
Properties
Functions
Link copied to clipboard
Apply the aggregate function to the parameters of the device while the condition is satisfied, then returns the result of the computation.