From 4f262d6540281487f79870aff589ca92f5d2f6c6 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Wed, 16 Dec 2020 14:39:42 +0100 Subject: Initial commit --- worker/dune | 9 +++++++++ worker/worker.ml | 5 +++++ 2 files changed, 14 insertions(+) create mode 100755 worker/dune create mode 100755 worker/worker.ml (limited to 'worker') 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 -- cgit v1.2.3