Ocamlnet 3 Reference Manual : Netchannels.trans_out_obj_channel

# Class type Netchannels.trans_out_obj_channel

    class type trans_out_obj_channel = object .. end

A transactional output channel has a buffer for uncommitted data. This means that all data written to this channel is collected in the buffer until either `commit_work` or `rollback_work` is called.

When the channel is closed, the buffer may optionally be committed. This is implementation-defined.

The method `flush` does not have any effect on the transaction buffer.

Inherits

- `Netchannels.out_obj_channel`

    method commit_work : unit -> unit

Flushes the transaction buffer, and writes its contents to the underlying resource.

    method rollback_work : unit -> unit

Empties the transaction buffer