Packages

A library for distributed reactive programming with flexible consistency guarantees drawing from QUARP and Rx.. Features the familiar behaviours and event streams in the spirit of FRP.

Current section

Files

Jump to
bquarp lib reactive_middleware.ex
Raw

lib/reactive_middleware.ex

defmodule ReactiveMiddleware.Application do
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
# List all child processes to be supervised
children = [
supervisor(Reactivity.Registry, [[]]),
supervisor(Connector, [[]]),
]
# See https://hexdocs.pm/elixir/Supervisor.html
# for other strategies and supported options
opts = [strategy: :one_for_one, name: Middleware.Supervisor]
Supervisor.start_link(children, opts)
end
end