Ecaml.Sync_or_asyncval sexp_of_t :
('a -> Sexplib0.Sexp.t) ->
('b -> Sexplib0.Sexp.t) ->
('a, 'b) t ->
Sexplib0.Sexp.tval return : ('a, 'b) t -> 'a -> 'bval protect :
?allow_in_background:bool ->
Core.Source_code_position.t ->
(_, 'a) t ->
f:(unit -> 'a) ->
finally:(unit -> unit) ->
'aSee Background for the invariants that must be maintained when running an async job in the background.