diff options
author | Sébastien Dailly <sebastien@chimrod.com> | 2020-12-16 14:39:42 +0100 |
---|---|---|
committer | Sébastien Dailly <sebastien@chimrod.com> | 2020-12-16 14:39:42 +0100 |
commit | 4f262d6540281487f79870aff589ca92f5d2f6c6 (patch) | |
tree | 940e59d943715366d1aa72bb93f248dcd65ab992 /worker/worker.ml |
Initial commit
Diffstat (limited to 'worker/worker.ml')
-rwxr-xr-x | worker/worker.ml | 5 |
1 files changed, 5 insertions, 0 deletions
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 |