jon.recoil.org

Module Format.SafeSource

Submodule containing non-backwards-compatible functions which enforce thread safety via modes.

Sourceval make_synchronized_formatter : (string -> int -> int -> unit) @ portable -> (unit -> unit) @ portable -> Stdlib.Format.formatter Stdlib.Domain.Safe.DLS.key

Like make_synchronized_formatter, but can be called from any domain. The provided closures must be portable as they will be called from other domains that access the returned Domain.Safe.DLS.key.