10 val callcc: ('a t -> 'a) -> 'a
11 val isolate: ('a -> unit) -> 'a t
12 val prepend: 'a t * ('b -> 'a) -> 'b t
13 val throw: 'a t * 'a -> 'b
14 val throw': 'a t * (unit -> 'a) -> 'b
20 the type of continuations that expect a value of type `'a`.
24 applies `f` to the current continuation. This copies the entire
25 stack; hence, `callcc` takes time proportional to the size of the
30 creates a continuation that evaluates `f` in an empty context. This
31 is a constant time operation, and yields a constant size stack.
35 composes a function `f` with a continuation `k` to create a
36 continuation that first does `f` and then does `k`. This is a
37 constant time operation.
41 throws value `v` to continuation `k`. This copies the entire stack of
42 `k`; hence, `throw` takes time proportional to the size of this stack.
46 a generalization of throw that evaluates `th ()` in the context of
47 `k`. Thus, for example, if `th ()` raises an exception or captures
48 another continuation, it will see `k`, not the current continuation.
53 * <:MLtonContIsolateImplementation:>