lib/cml/cml-lib/result.sig
raw| 1 | (* result.sig |
| 2 | * 2004 Matthew Fluet ([email protected]) |
| 3 | * Ported to MLton threads. |
| 4 | *) |
| 5 | |
| 6 | (* result.sml |
| 7 | * |
| 8 | * COPYRIGHT (c) 1996 AT&T Research. |
| 9 | * |
| 10 | *) |
| 11 | |
| 12 | signature RESULT = |
| 13 | sig |
| 14 | type 'a result |
| 15 | |
| 16 | val result : unit -> 'a result |
| 17 | val put : ('a result * 'a) -> unit |
| 18 | val putExn : ('a result * exn) -> unit |
| 19 | val get : 'a result -> 'a |
| 20 | val getEvt : 'a result -> 'a CML.event |
| 21 | end |