lol took me forever to understand lwt but finally have concurrency in the actor event processing handlers

This commit is contained in:
cqc
2021-10-07 14:07:26 -05:00
parent c8e9e1bd6c
commit 630ccb0a6f
7 changed files with 256 additions and 332 deletions

View File

@ -44,7 +44,7 @@ let toplevel_value_bindings : Obj.t String.Map.t ref =
ref String.Map.empty
let ppf = ref Format.std_formatter
let eval = ref None
let eval = ref (fun _ _ -> ())
let getvalue name =
try String.Map.find name !toplevel_value_bindings
@ -2398,5 +2398,5 @@ let init ppf =
Location.input_phrase_buffer := Some phrase_buffer ;
Sys.catch_break true ;
run_hooks After_setup ;
eval := Some (eval_fun lb) ;
eval := eval_fun lb ;
eval_fun lb