entangle:保持原子同步

时间:2021-05-15 12:54:59
【文件属性】:
文件名称:entangle:保持原子同步
文件大小:20KB
文件格式:ZIP
更新时间:2021-05-15 12:54:59
Clojure 绞 可以使用纠缠将在空间和时间上分离的两个原子绑定在一起。 Entangle是Neil Fraser的算法的一种实现,该算法使用针对Clojure和Clojurescript的core.async 。 当前,它依赖于的分支版本(用于Clojure和Clojurescript交叉兼容性)。 用法 ( require ['entagle.core :as e] ['clojure.core.async :as a]) ( def atom-a ( atom " " )) ( def atom-b ( atom " " )) ( def a<-b ( a/chan )) ( def a->b ( a/chan )) ( e/start-sync atom-a a<-b a->b :atom-a ) ( e/start-sync atom-b a->b a<-b :atom-b
【文件预览】:
entangle-master
----env()
--------prod()
--------dev()
----src()
--------cljs()
--------entangle()
----script()
--------repl.clj(252B)
----doc()
--------intro.md(106B)
----README.org(2KB)
----LICENSE(11KB)
----test()
--------entangle()
----project.clj(2KB)
----.gitignore(243B)

网友评论