aboutsummaryrefslogtreecommitdiff
path: root/worker
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@chimrod.com>2020-12-16 14:39:42 +0100
committerSébastien Dailly <sebastien@chimrod.com>2020-12-16 14:39:42 +0100
commit4f262d6540281487f79870aff589ca92f5d2f6c6 (patch)
tree940e59d943715366d1aa72bb93f248dcd65ab992 /worker
Initial commit
Diffstat (limited to 'worker')
-rwxr-xr-xworker/dune9
-rwxr-xr-xworker/worker.ml5
2 files changed, 14 insertions, 0 deletions
diff --git a/worker/dune b/worker/dune
new file mode 100755
index 0000000..9f95cf8
--- /dev/null
+++ b/worker/dune
@@ -0,0 +1,9 @@
+(library
+ (name worker)
+ (libraries
+ gg
+ brr
+ note
+ curves
+ )
+ )
diff --git a/worker/worker.ml b/worker/worker.ml
new file mode 100755
index 0000000..7a8d09a
--- /dev/null
+++ b/worker/worker.ml
@@ -0,0 +1,5 @@
+open Brr_webworkers
+
+let spawn_worker name =
+ try Ok (Worker.create name) with
+ | Jv.Error e -> Error e