Commit | Line | Data |
---|---|---|
7f918cf1 CE |
1 | (* Copyright (C) 1999-2005 Henry Cejtin, Matthew Fluet, Suresh |
2 | * Jagannathan, and Stephen Weeks. | |
3 | * | |
4 | * MLton is released under a BSD-style license. | |
5 | * See the file MLton-LICENSE for details. | |
6 | *) | |
7 | ||
8 | signature CLEARABLE_PROMISE = | |
9 | sig | |
10 | type 'a t | |
11 | ||
12 | exception Force | |
13 | ||
14 | val clear: 'a t -> unit | |
15 | val delay: (unit -> 'a) -> 'a t | |
16 | val force: 'a t -> 'a | |
17 | end |