Skip to content

fnumatic/simple-workers

Repository files navigation

License: MIT

Web workers for clojurescript

This clojurescript library wraps the web worker api and provides an simple way for multithreading within browsers with cljs.

Getting started

Get it / add dependency

Usage

Look at the test example.

shadow config for real app

̀{ :target     :browser
  :modules    { :shared   { :entries []}
                :renderer { :entries    [foo.init]
                            :depends-on #{:shared}}
                :worker   { :entries    [foo.worker.simple]
                            :init-fn    foo.worker.simple/init
                            :depends-on #{:shared}
                            :web-worker true}}
  :devtools   { :browser-inject :renderer}}

Notes

Uses transit for serialize, deserialize

Important
No Deployment on clojars/maven
Important
No Worker Pools
Important
No Transferables

Appendix

Releases

No releases published

Packages

No packages published