summaryrefslogtreecommitdiff
path: root/src/bg_thread.sig
diff options
context:
space:
mode:
Diffstat (limited to 'src/bg_thread.sig')
-rw-r--r--src/bg_thread.sig7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bg_thread.sig b/src/bg_thread.sig
new file mode 100644
index 00000000..5455bbc8
--- /dev/null
+++ b/src/bg_thread.sig
@@ -0,0 +1,7 @@
+(* Notice: API is kinda bad. We only allow queuing a single task per file *)
+(* This works for us because we only do elaboration in the background, nothing else *)
+signature BGTHREAD = sig
+ val queueBgTask: string (* fileName *) -> (unit -> unit) -> unit
+ val hasBgTasks: unit -> bool
+ val runBgTaskForABit: unit -> unit
+end