equal
deleted
inserted
replaced
17 val _ = Session.protocol_handler "isabelle.Invoke_Scala"; |
17 val _ = Session.protocol_handler "isabelle.Invoke_Scala"; |
18 |
18 |
19 |
19 |
20 (* pending promises *) |
20 (* pending promises *) |
21 |
21 |
22 val new_id = string_of_int o Synchronized.counter (); |
22 val new_id = string_of_int o Counter.make (); |
23 |
23 |
24 val promises = |
24 val promises = |
25 Synchronized.var "Invoke_Scala.promises" (Symtab.empty: string future Symtab.table); |
25 Synchronized.var "Invoke_Scala.promises" (Symtab.empty: string future Symtab.table); |
26 |
26 |
27 |
27 |