package async_smtp

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

A spooled entry that is checked out, independent of any particular queue. No other process using this interface will be able to interfere with a Checked_out_entry.t (unlike an Entry.t, which may be stolen out from under you).

type t
val name : t -> string
val queue : t -> S.Queue.t
val contents : t -> S.Metadata.t
val update : t -> f:(S.Metadata.t -> S.Metadata.t) -> t
val data_file : t -> Data_file.t
val save : t -> S.Queue.t -> unit Async.Deferred.Or_error.t

Atomically return a Checked_out_entry.t to a queue. The Checked_out_entry.t should be forgotten after this.

val remove : t -> unit Async.Deferred.Or_error.t

Delete a Checked_out_entry.t (along with its registry file and data_file). The Checked_out_entry.t should be forgotten after this.

OCaml

Innovation. Community. Security.