Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 1.29 KB

README.adoc

File metadata and controls

47 lines (31 loc) · 1.29 KB
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