Class type Net_channels.acc_out_channel


class type ['a] acc_out_channel = object .. end
Accumulator channel (meaningful for Netchannels built from Batteries output channels).

Once an accumulator channel has been closed, the value it has accumulated during output can be retrieved using # accumulator.

This class can be coerced to a plain rec_out_channel using acc_oc :> rec_out_channel, where acc_oc is an acc_out_channel instance.
Inherits


method accumulator : 'a option
Returns Some acc where acc is the accumulator data collected when the System.IO.output channel used to create this Netchannel was closed; return None if the channel hasn't been closed yet.