【文件属性】:
文件名称:stream_runner:将流作为流程运行
文件大小:12KB
文件格式:ZIP
更新时间:2021-05-18 05:05:04
Elixir
StreamRunner
安装
添加为依赖项:
defp deps () do
[{ :stream_runner , " ~> 1.0 " }]
end
用法
将Stream作为OTP进程运行。
stream = Stream . interval ( 1000 ) |> Stream . each ( & IO . inspect / 1 )
StreamRunner . start_link (stream)
【文件预览】:
stream_runner-master
----mix.exs(839B)
----lib()
--------stream_runner()
--------stream_runner.ex(8KB)
----.travis.yml(202B)
----config()
--------config.exs(1KB)
----LICENSE(11KB)
----test()
--------stream_runner_test.exs(8KB)
--------test_helper.exs(15B)
----README.md(282B)
----mix.lock(79B)
----.gitignore(34B)