Import Upstream version 20180207
[hcoop/debian/mlton.git] / basis-library / mlton / world.sig
CommitLineData
7f918cf1
CE
1(* Copyright (C) 1999-2007 Henry Cejtin, Matthew Fluet, Suresh
2 * Jagannathan, and Stephen Weeks.
3 * Copyright (C) 1997-2000 NEC Research Institute.
4 *
5 * MLton is released under a BSD-style license.
6 * See the file MLton-LICENSE for details.
7 *)
8
9signature MLTON_WORLD =
10 sig
11 datatype status = Clone | Original
12
13 val load: string -> 'a
14 (* Save the world to resume with the current thread. *)
15 val save: string -> status
16 (* Save the world to resume with the given thread. *)
17 val saveThread: string * MLtonThread.Runnable.t -> unit
18 end