transport.mli (1018B)
1 (* Unison file synchronizer: src/transport.mli *) 2 (* Copyright 1999-2020, Benjamin C. Pierce (see COPYING for details) *) 3 4 (* Size of the pool of threads for executing transport actions. *) 5 val maxThreads : unit -> int 6 7 (* Run tasks concurrently in a pool of threads, acquiring tasks with 8 the supplied task dispenser function. The tasks received from 9 the task dispenser must not raise uncaught exceptions or return 10 with [Lwt.fail]. *) 11 val run : 12 (unit -> (unit -> unit Lwt.t) option) (* Task dispenser *) 13 -> unit 14 15 (* Executes the actions implied by the reconItem list. *) 16 val transportItem : 17 Common.reconItem (* Updates that need to be performed *) 18 -> Uutil.File.t (* id for progress reports *) 19 -> (string->string->bool) (* fn to display title / result of merge and confirm *) 20 -> unit Lwt.t 21 22 (* Should be called respectively when starting the synchronization and 23 once it is finished *) 24 val logStart : unit -> unit 25 val logFinish : unit -> unit