Library
Module
Module type
Parameter
Class
Class type
include S.BUILDER with type context := Obuilder__.Build.Context.t
val build :
t ->
Obuilder__.Build.Context.t ->
Obuilder_spec.t ->
(S.id, [> `Cancelled | `Msg of string ]) Lwt_result.t
val finish : t -> unit Lwt.t
finish builder
close allocated resources and store state (e.g., sqlite3 databases).
delete ?log t id
removes id
from the store, along with all of its dependencies. This is for testing. Note that is not safe to perform builds while deleting: the delete might fail because an item got a new child during the delete, or we might delete something that the build is using.
prune t ~before n
attempts to remove up to n
items from the store, all of which were last used before before
. Returns the number of items removed.
val healthcheck :
?timeout:float ->
t ->
(unit, [> `Msg of string ]) Lwt_result.t
healthcheck t
performs a check that t
is working correctly.