File_writer is a thin wrapper around Writer with a couple of extra features:
1. It keeps track of all the file writers that have been created so that it can iterate over them to find out how many bytes in total they have to write.
2. It keeps track of whether the underlying writer has failed, and if so silently ignores future operations. This can prevent pointlessly filling up a writer's buffer with data that will never go anywhere.
include sig ... endval sexp_of_t : t ‑> Sexplib.Sexp.tval create : ?append:bool ‑> string ‑> t Async_extra__.Import.Deferred.tcreate file opens file, creating it if it doesn't exist.
val write_substring : t ‑> Core.Substring.t ‑> unitval write_bigsubstring : t ‑> Core.Bigsubstring.t ‑> unitval write_bigstring : t ‑> ?pos:int ‑> ?len:int ‑> Core.Bigstring.t ‑> unitval schedule_bigstring : t ‑> Core.Bigstring.t ‑> unitval write_iobuf : t ‑> ?pos:int ‑> ?len:int ‑> ([> Core.read ], _) Core.Iobuf.t ‑> unitval write_bin_prot : t ‑> 'a Bin_prot.Type_class.writer ‑> 'a ‑> unitval write_sexp : ?hum:bool ‑> t ‑> Async_extra__.Import.Sexp.t ‑> unitval monitor : t ‑> Async_extra__.Import.Monitor.tval bytes_to_write : unit ‑> intbytes_to_write () returns the sum over all async_file_writers of how
many bytes they need to write.
val flushed : t ‑> unit Async_extra__.Import.Deferred.tval close : t ‑> unit Async_extra__.Import.Deferred.t