graphex:Elixir的任务图执行库

时间:2021-05-09 18:09:27
【文件属性】:
文件名称:graphex:Elixir的任务图执行库
文件大小:15KB
文件格式:ZIP
更新时间:2021-05-09 18:09:27
Elixir Graphex 在Elixir中用于编写和执行任务图的库。 添加为依赖项 { :graphex , " ~> 0.2.1 " } 另外,请确保将:graphex添加到您的应用程序的OTP应用程序列表中,因为它具有监督树,在使用该库之前必须先启动它。 用法 每个节点由一个单独的进程表示,因此任务将在可能的情况下并行运行。 incr = fn node -> fn r -> r[node] + 1 end result = exec_graph :e , [ [ name: :a , fun: fn _ -> 0 end ], [ name: :b , fun: incr .( :a ), deps: [ :a ]], [ name: :c , fun: incr .( :b ), deps: [ :b ]], [ name: :d , fun: incr .( :b
【文件预览】:
graphex-master
----.gitignore(39B)
----README.md(1KB)
----test()
--------test_helper.exs(48B)
--------graphex()
--------graphex_test.exs(2KB)
----LICENSE(1KB)
----config()
--------config.exs(1KB)
----.travis.yml(83B)
----mix.lock(119B)
----lib()
--------graphex.ex(3KB)
--------graphex()
----mix.exs(1KB)

网友评论